summary refs log blame commit diff
path: root/pkgs/development/python-modules/slicedimage/default.nix
blob: 506fad5db48d5c58fd507c076a1531e489467b88 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12

                    
                 








             
                 
        
          



                        
                    
 




                                                                    









                           
            


                                               
                   

    



                                                                                  


                                                          
                                                        



                                           
{ lib
, buildPythonPackage
, fetchFromGitHub
, boto3
, diskcache
, enum34
, packaging
, pathlib
, numpy
, requests
, scikitimage
, six
, pytestCheckHook
, isPy27
, tifffile
}:

buildPythonPackage rec {
  pname = "slicedimage";
  version = "4.1.1";

  src = fetchFromGitHub {
    owner = "spacetx";
    repo = pname;
    rev = version;
    sha256 = "1vpg8varvfx0nj6xscdfm7m118hzsfz7qfzn28r9rsfvrhr0dlcw";
  };

  propagatedBuildInputs = [
    boto3
    diskcache
    packaging
    numpy
    requests
    scikitimage
    six
    tifffile
  ] ++ lib.optionals isPy27 [ pathlib enum34 ];

  checkInputs = [
    pytestCheckHook
  ];

  # Ignore tests which require setup, check again if disabledTestFiles can be used
  pytestFlagsArray = [ "--ignore tests/io_" ];

  pythonImportsCheck = [ "slicedimage" ];

  meta = with lib; {
    description = "Library to access sliced imaging data";
    homepage = "https://github.com/spacetx/slicedimage";
    license = licenses.mit;
    maintainers = [ maintainers.costrouc ];
  };
}