From 13b5bfbad4407ea746e0a4cca42585439f6f80e6 Mon Sep 17 00:00:00 2001 From: Chris Ostrouchov Date: Tue, 16 Oct 2018 13:55:31 -0400 Subject: [PATCH] pythonPackages.django_taggit: refactor move to python-modules --- .../python-modules/django_taggit/default.nix | 26 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 20 +------------- 2 files changed, 27 insertions(+), 19 deletions(-) create mode 100644 pkgs/development/python-modules/django_taggit/default.nix diff --git a/pkgs/development/python-modules/django_taggit/default.nix b/pkgs/development/python-modules/django_taggit/default.nix new file mode 100644 index 000000000000..276097802e70 --- /dev/null +++ b/pkgs/development/python-modules/django_taggit/default.nix @@ -0,0 +1,26 @@ +{ stdenv +, buildPythonPackage +, fetchPypi +, pythonOlder +}: + +buildPythonPackage rec { + pname = "django-taggit"; + version = "0.17.0"; + disabled = pythonOlder "2.7"; + + src = fetchPypi { + inherit pname version; + sha256 = "1xy4mm1y6z6bpakw907859wz7fiw7jfm586dj89w0ggdqlb0767b"; + }; + + doCheck = false; + + meta = with stdenv.lib; { + description = "django-taggit is a reusable Django application for simple tagging"; + homepage = https://github.com/alex/django-taggit/tree/master/; + license = licenses.bsd2; + maintainers = with maintainers; [ desiderius ]; + }; + +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index c44cc1185a1e..c2444cd878a3 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -2312,25 +2312,7 @@ in { django_silk = callPackage ../development/python-modules/django_silk { }; - django_taggit = buildPythonPackage rec { - name = "django-taggit-${version}"; - version = "0.17.0"; - disabled = pythonOlder "2.7"; - - src = pkgs.fetchurl { - url = "mirror://pypi/d/django-taggit/django-taggit-${version}.tar.gz"; - sha256 = "1xy4mm1y6z6bpakw907859wz7fiw7jfm586dj89w0ggdqlb0767b"; - }; - - doCheck = false; - - meta = { - description = "django-taggit is a reusable Django application for simple tagging"; - homepage = https://github.com/alex/django-taggit/tree/master/; - license = licenses.bsd2; - maintainers = with maintainers; [ desiderius ]; - }; - }; + django_taggit = callPackage ../development/python-modules/django_taggit { }; django_treebeard = buildPythonPackage rec { name = "django-treebeard-${version}";