1{ lib
2, buildPythonPackage
3, fetchPypi
4, boto3
5, diskcache
6, enum34
7, packaging
8, pathlib
9, numpy
10, requests
11, scikitimage
12, six
13, pytest
14, isPy27
15, tifffile
16}:
17
18buildPythonPackage rec {
19 pname = "slicedimage";
20 version = "4.1.1";
21
22 src = fetchPypi {
23 inherit pname version;
24 sha256 = "7369f1d7fa09f6c9969625c4b76a8a63d2507a94c6fc257183da1c10261703e9";
25 };
26
27 propagatedBuildInputs = [
28 boto3
29 diskcache
30 packaging
31 numpy
32 requests
33 scikitimage
34 six
35 tifffile
36 ] ++ lib.optionals isPy27 [ pathlib enum34 ];
37
38 checkInputs = [
39 pytest
40 ];
41
42 # ignore tests which require setup
43 checkPhase = ''
44 pytest --ignore tests/io_
45 '';
46
47 meta = with lib; {
48 description = "Library to access sliced imaging data";
49 homepage = "https://github.com/spacetx/slicedimage";
50 license = licenses.mit;
51 maintainers = [ maintainers.costrouc ];
52 };
53}