pythonPackages.imagesize: refactor move to python-modules

This commit is contained in:
Chris Ostrouchov 2018-10-15 23:39:15 -04:00 committed by Frederik Rietdijk
parent ce6ed524b3
commit 80f7dc9c55
2 changed files with 22 additions and 16 deletions

View file

@ -0,0 +1,21 @@
{ stdenv
, buildPythonPackage
, fetchPypi
}:
buildPythonPackage rec {
pname = "imagesize";
version = "0.7.0";
src = fetchPypi {
inherit pname version;
sha256 = "0msgz4ncp2nb5nbsxnf8kvxsl6nhwvc3b46ik097fvznl3y10gdv";
};
meta = with stdenv.lib; {
description = "Getting image size from png/jpeg/jpeg2000/gif file";
homepage = https://github.com/shibukawa/imagesize_py;
license = with licenses; [ mit ];
};
}

View file

@ -1884,22 +1884,7 @@ in {
ijson = callPackage ../development/python-modules/ijson {}; ijson = callPackage ../development/python-modules/ijson {};
imagesize = buildPythonPackage rec { imagesize = callPackage ../development/python-modules/imagesize { };
name = "imagesize-${version}";
version = "0.7.0";
src = pkgs.fetchurl {
url = "mirror://pypi/i/imagesize/${name}.tar.gz";
sha256 = "0msgz4ncp2nb5nbsxnf8kvxsl6nhwvc3b46ik097fvznl3y10gdv";
};
meta = {
description = "Getting image size from png/jpeg/jpeg2000/gif file";
homepage = https://github.com/shibukawa/imagesize_py;
license = with licenses; [ mit ];
};
};
image-match = callPackage ../development/python-modules/image-match { }; image-match = callPackage ../development/python-modules/image-match { };