pythonPackages.libthumbor: refactor move to python-modules

This commit is contained in:
Chris Ostrouchov 2018-10-15 23:44:31 -04:00 committed by Frederik Rietdijk
parent aa03d6cfc2
commit 9163ad5f97
2 changed files with 30 additions and 22 deletions

View File

@ -0,0 +1,29 @@
{ stdenv
, buildPythonPackage
, fetchPypi
, django
, six
, pycrypto
}:
buildPythonPackage rec {
pname = "libthumbor";
version = "1.3.2";
src = fetchPypi {
inherit pname version;
sha256 = "1vjhszsf8wl9k16wyg2rfjycjnawzl7z8j39bhiysbz5x4lqg91b";
};
buildInputs = [ django ];
propagatedBuildInputs = [ six pycrypto ];
doCheck = false;
meta = with stdenv.lib; {
description = "libthumbor is the python extension to thumbor";
homepage = https://github.com/heynemann/libthumbor;
license = licenses.mit;
};
}

View File

@ -1942,28 +1942,6 @@ in {
libsoundtouch = callPackage ../development/python-modules/libsoundtouch { }; libsoundtouch = callPackage ../development/python-modules/libsoundtouch { };
libthumbor = buildPythonPackage rec {
name = "libthumbor-${version}";
version = "1.3.2";
src = pkgs.fetchurl {
url = "mirror://pypi/l/libthumbor/${name}.tar.gz";
sha256 = "1vjhszsf8wl9k16wyg2rfjycjnawzl7z8j39bhiysbz5x4lqg91b";
};
buildInputs = with self; [ django ];
propagatedBuildInputs = with self; [ six pycrypto ];
doCheck = false;
meta = {
description = "libthumbor is the python extension to thumbor";
homepage = https://github.com/heynemann/libthumbor;
license = licenses.mit;
};
};
lightblue = buildPythonPackage rec { lightblue = buildPythonPackage rec {
pname = "lightblue"; pname = "lightblue";
version = "0.4"; version = "0.4";
@ -1996,6 +1974,7 @@ in {
url = "mirror://pypi/l/lightning-python/${name}.tar.gz"; url = "mirror://pypi/l/lightning-python/${name}.tar.gz";
sha256 = "3987d7d4a634bdb6db9bcf212cf4d2f72bab5bc039f4f6cbc02c9d01c4ade792"; sha256 = "3987d7d4a634bdb6db9bcf212cf4d2f72bab5bc039f4f6cbc02c9d01c4ade792";
}; };
libthumbor = callPackage ../development/python-modules/libthumbor { };
buildInputs = with self; [ pytest ]; buildInputs = with self; [ pytest ];