1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, boto3 5, diskcache 6, enum34 7, packaging 8, pathlib 9, numpy 10, requests 11, scikit-image 12, six 13, pytestCheckHook 14, isPy27 15, tifffile 16}: 17 18buildPythonPackage rec { 19 pname = "slicedimage"; 20 version = "4.1.1"; 21 22 src = fetchFromGitHub { 23 owner = "spacetx"; 24 repo = pname; 25 rev = version; 26 sha256 = "1vpg8varvfx0nj6xscdfm7m118hzsfz7qfzn28r9rsfvrhr0dlcw"; 27 }; 28 29 propagatedBuildInputs = [ 30 boto3 31 diskcache 32 packaging 33 numpy 34 requests 35 scikit-image 36 six 37 tifffile 38 ] ++ lib.optionals isPy27 [ pathlib enum34 ]; 39 40 nativeCheckInputs = [ 41 pytestCheckHook 42 ]; 43 44 # Ignore tests which require setup, check again if disabledTestFiles can be used 45 pytestFlagsArray = [ "--ignore tests/io_" ]; 46 47 pythonImportsCheck = [ "slicedimage" ]; 48 49 meta = with lib; { 50 description = "Library to access sliced imaging data"; 51 homepage = "https://github.com/spacetx/slicedimage"; 52 license = licenses.mit; 53 maintainers = [ ]; 54 }; 55}