pythonPackages.imageio: refactor move to python-modules
This commit is contained in:
parent
65db7eb208
commit
f725650c69
33
pkgs/development/python-modules/imageio/default.nix
Normal file
33
pkgs/development/python-modules/imageio/default.nix
Normal file
@ -0,0 +1,33 @@
|
|||||||
|
{ stdenv
|
||||||
|
, buildPythonPackage
|
||||||
|
, fetchurl
|
||||||
|
, pytest
|
||||||
|
, numpy
|
||||||
|
}:
|
||||||
|
|
||||||
|
buildPythonPackage rec {
|
||||||
|
pname = "imageio";
|
||||||
|
version = "1.6";
|
||||||
|
|
||||||
|
src = fetchurl {
|
||||||
|
url = "https://github.com/imageio/imageio/archive/v${version}.tar.gz";
|
||||||
|
sha256 = "195snkk3fsbjqd5g1cfsd9alzs5q45gdbi2ka9ph4yxqb31ijrbv";
|
||||||
|
};
|
||||||
|
|
||||||
|
buildInputs = [ pytest ];
|
||||||
|
propagatedBuildInputs = [ numpy ];
|
||||||
|
|
||||||
|
checkPhase = ''
|
||||||
|
py.test
|
||||||
|
'';
|
||||||
|
|
||||||
|
# Tries to write in /var/tmp/.imageio
|
||||||
|
doCheck = false;
|
||||||
|
|
||||||
|
meta = with stdenv.lib; {
|
||||||
|
description = "Library for reading and writing a wide range of image, video, scientific, and volumetric data formats";
|
||||||
|
homepage = http://imageio.github.io/;
|
||||||
|
license = licenses.bsd2;
|
||||||
|
};
|
||||||
|
|
||||||
|
}
|
@ -2476,31 +2476,7 @@ in {
|
|||||||
|
|
||||||
icalendar = callPackage ../development/python-modules/icalendar { };
|
icalendar = callPackage ../development/python-modules/icalendar { };
|
||||||
|
|
||||||
imageio = buildPythonPackage rec {
|
imageio = callPackage ../development/python-modules/imageio { };
|
||||||
name = "imageio-${version}";
|
|
||||||
version = "1.6";
|
|
||||||
|
|
||||||
src = pkgs.fetchurl {
|
|
||||||
url = "https://github.com/imageio/imageio/archive/v${version}.tar.gz";
|
|
||||||
sha256 = "195snkk3fsbjqd5g1cfsd9alzs5q45gdbi2ka9ph4yxqb31ijrbv";
|
|
||||||
};
|
|
||||||
|
|
||||||
buildInputs = with self; [ pytest ];
|
|
||||||
propagatedBuildInputs = with self; [ numpy ];
|
|
||||||
|
|
||||||
checkPhase = ''
|
|
||||||
py.test
|
|
||||||
'';
|
|
||||||
|
|
||||||
# Tries to write in /var/tmp/.imageio
|
|
||||||
doCheck = false;
|
|
||||||
|
|
||||||
meta = {
|
|
||||||
description = "Library for reading and writing a wide range of image, video, scientific, and volumetric data formats";
|
|
||||||
homepage = http://imageio.github.io/;
|
|
||||||
license = licenses.bsd2;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
imgaug = callPackage ../development/python-modules/imgaug { };
|
imgaug = callPackage ../development/python-modules/imgaug { };
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user