pythonPackages.imagesize: refactor move to python-modules
This commit is contained in:
parent
ce6ed524b3
commit
80f7dc9c55
2 changed files with 22 additions and 16 deletions
21
pkgs/development/python-modules/imagesize/default.nix
Normal file
21
pkgs/development/python-modules/imagesize/default.nix
Normal 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 ];
|
||||
};
|
||||
|
||||
}
|
|
@ -1884,22 +1884,7 @@ in {
|
|||
|
||||
ijson = callPackage ../development/python-modules/ijson {};
|
||||
|
||||
imagesize = buildPythonPackage rec {
|
||||
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 ];
|
||||
};
|
||||
|
||||
};
|
||||
imagesize = callPackage ../development/python-modules/imagesize { };
|
||||
|
||||
image-match = callPackage ../development/python-modules/image-match { };
|
||||
|
||||
|
|
Loading…
Reference in a new issue