nixpkgs/pkgs/development/python-modules/slicedimage/default.nix

54 lines
886 B
Nix
Raw Normal View History

{ lib
, buildPythonPackage
, fetchPypi
, boto3
, diskcache
, enum34
, packaging
, pathlib
, numpy
, requests
, scikitimage
, six
, pytest
, isPy27
, tifffile
}:
buildPythonPackage rec {
pname = "slicedimage";
2019-12-19 19:31:22 +00:00
version = "4.1.1";
src = fetchPypi {
inherit pname version;
2019-12-19 19:31:22 +00:00
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 ];
};
}