3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/python-modules/tifffile/default.nix

29 lines
758 B
Nix
Raw Normal View History

{ lib, stdenv, fetchPypi, buildPythonPackage, isPy27, pythonOlder
, numpy, nose, enum34, futures }:
buildPythonPackage rec {
pname = "tifffile";
2018-02-26 17:47:20 +00:00
version = "0.14.0";
src = fetchPypi {
inherit pname version;
2018-02-26 17:47:20 +00:00
sha256 = "eff44f71782dce38c604921a1b29ddad0d007ac9871d66e9c872fd6fc311334e";
};
checkInputs = [ nose ];
checkPhase = ''
nosetests --exe -v --exclude="test_extension"
'';
propagatedBuildInputs = [ numpy ]
++ lib.optional isPy27 futures
++ lib.optional (pythonOlder "3.0") enum34;
meta = with stdenv.lib; {
description = "Read and write image data from and to TIFF files.";
homepage = https://github.com/blink1073/tifffile;
maintainers = [ maintainers.lebastr ];
license = licenses.bsd2;
};
}