From 9163ad5f973a873d6df484af43aa49874154ae44 Mon Sep 17 00:00:00 2001 From: Chris Ostrouchov Date: Mon, 15 Oct 2018 23:44:31 -0400 Subject: [PATCH] pythonPackages.libthumbor: refactor move to python-modules --- .../python-modules/libthumbor/default.nix | 29 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 23 +-------------- 2 files changed, 30 insertions(+), 22 deletions(-) create mode 100644 pkgs/development/python-modules/libthumbor/default.nix diff --git a/pkgs/development/python-modules/libthumbor/default.nix b/pkgs/development/python-modules/libthumbor/default.nix new file mode 100644 index 000000000000..6c9987a5b8e8 --- /dev/null +++ b/pkgs/development/python-modules/libthumbor/default.nix @@ -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; + }; + +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 325a8e83977c..6b2907d3a2c5 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -1942,28 +1942,6 @@ in { 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 { pname = "lightblue"; version = "0.4"; @@ -1996,6 +1974,7 @@ in { url = "mirror://pypi/l/lightning-python/${name}.tar.gz"; sha256 = "3987d7d4a634bdb6db9bcf212cf4d2f72bab5bc039f4f6cbc02c9d01c4ade792"; }; + libthumbor = callPackage ../development/python-modules/libthumbor { }; buildInputs = with self; [ pytest ];