3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/python-modules/tifffile/default.nix
Alexander 6ccb554f3b tifffile: init at 0.13.0 (#33750)
* tifffile: init at v0.13.0

* python.pkgs.tifffile: actually run tests
2018-01-13 18:12:56 +00:00

29 lines
746 B
Nix

{ lib, stdenv, fetchPypi, buildPythonPackage, isPy27, pythonOlder
, numpy, nose, enum34, futures }:
buildPythonPackage rec {
pname = "tifffile";
version = "0.13.0";
src = fetchPypi {
inherit pname version;
sha256 = "1rqx2bar6dcsbmzq68mjh5bsyjzhbkqxi2dsv7j0vdbnjs5dfq9q";
};
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;
};
}