From b8ba7b8cdda7d53a2d21be3a0d232cba7b2e881b Mon Sep 17 00:00:00 2001 From: Chris Ostrouchov Date: Sat, 27 Oct 2018 10:17:16 -0400 Subject: [PATCH] pythonPackages.sorl_thumbnail: refactor move to python-modules --- .../python-modules/sorl_thumbnail/default.nix | 24 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 18 +------------- 2 files changed, 25 insertions(+), 17 deletions(-) create mode 100644 pkgs/development/python-modules/sorl_thumbnail/default.nix diff --git a/pkgs/development/python-modules/sorl_thumbnail/default.nix b/pkgs/development/python-modules/sorl_thumbnail/default.nix new file mode 100644 index 000000000000..a580f80f281e --- /dev/null +++ b/pkgs/development/python-modules/sorl_thumbnail/default.nix @@ -0,0 +1,24 @@ +{ stdenv +, buildPythonPackage +, fetchPypi +}: + +buildPythonPackage rec { + pname = "sorl-thumbnail"; + version = "11.12"; + + src = fetchPypi { + inherit pname version; + sha256 = "050b9kzbx7jvs3qwfxxshhis090hk128maasy8pi5wss6nx5kyw4"; + }; + + # Disabled due to an improper configuration error when tested against django. This looks like something broken in the test cases for sorl. + doCheck = false; + + meta = with stdenv.lib; { + homepage = http://sorl-thumbnail.readthedocs.org/en/latest/; + description = "Thumbnails for Django"; + license = licenses.bsd3; + }; + +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 51e41287d592..929cff3e987f 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -3845,23 +3845,7 @@ in { sockjs-tornado = callPackage ../development/python-modules/sockjs-tornado { }; - sorl_thumbnail = buildPythonPackage rec { - name = "sorl-thumbnail-11.12"; - - src = pkgs.fetchurl { - url = "mirror://pypi/s/sorl-thumbnail/${name}.tar.gz"; - sha256 = "050b9kzbx7jvs3qwfxxshhis090hk128maasy8pi5wss6nx5kyw4"; - }; - - # Disabled due to an improper configuration error when tested against django. This looks like something broken in the test cases for sorl. - doCheck = false; - - meta = { - homepage = http://sorl-thumbnail.readthedocs.org/en/latest/; - description = "Thumbnails for Django"; - license = licenses.bsd3; - }; - }; + sorl_thumbnail = callPackage ../development/python-modules/sorl_thumbnail { }; supervisor = callPackage ../development/python-modules/supervisor {};