1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-25 03:17:13 +00:00
nixpkgs/pkgs/development/python-modules/slicedimage/default.nix
2019-12-30 16:46:47 +01:00

54 lines
884 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, boto3
, diskcache
, enum34
, packaging
, pathlib
, numpy
, requests
, scikitimage
, six
, pytest
, isPy27
, tifffile
}:
buildPythonPackage rec {
pname = "slicedimage";
version = "4.1.1";
src = fetchPypi {
inherit pname version;
sha256 = "7369f1d7fa09f6c9969625c4b76a8a63d2507a94c6fc257183da1c10261703e9";
};
propagatedBuildInputs = [
boto3
diskcache
packaging
numpy
requests
scikitimage
six
tifffile
] ++ lib.optionals isPy27 [ pathlib enum34 ];
checkInputs = [
pytest
];
# ignore tests which require setup
checkPhase = ''
pytest --ignore tests/io_
'';
meta = with lib; {
description = "Library to access sliced imaging data";
homepage = https://github.com/spacetx/slicedimage;
license = licenses.mit;
maintainers = [ maintainers.costrouc ];
};
}