summary refs log tree commit diff
path: root/pkgs
diff options
context:
space:
mode:
authorChris Ostrouchov <chris.ostrouchov@gmail.com>2018-10-16 13:47:51 -0400
committerFrederik Rietdijk <fridh@fridh.nl>2018-10-17 07:46:59 +0200
commit90859b17c68db2c4d995407f1895466371e8916a (patch)
tree1ea5cbb7d2f9ff636e8ddbc87f1923e49602872f /pkgs
parent194dd4b2f254df9356f3cef2341afe40aa8e3c26 (diff)
downloadnixlib-90859b17c68db2c4d995407f1895466371e8916a.tar
nixlib-90859b17c68db2c4d995407f1895466371e8916a.tar.gz
nixlib-90859b17c68db2c4d995407f1895466371e8916a.tar.bz2
nixlib-90859b17c68db2c4d995407f1895466371e8916a.tar.lz
nixlib-90859b17c68db2c4d995407f1895466371e8916a.tar.xz
nixlib-90859b17c68db2c4d995407f1895466371e8916a.tar.zst
nixlib-90859b17c68db2c4d995407f1895466371e8916a.zip
pythonPakcages.django_modelcluster: refactor move to python-modules
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/development/python-modules/django_modelcluster/default.nix28
-rw-r--r--pkgs/top-level/python-packages.nix21
2 files changed, 29 insertions, 20 deletions
diff --git a/pkgs/development/python-modules/django_modelcluster/default.nix b/pkgs/development/python-modules/django_modelcluster/default.nix
new file mode 100644
index 000000000000..3a2aad16ba5f
--- /dev/null
+++ b/pkgs/development/python-modules/django_modelcluster/default.nix
@@ -0,0 +1,28 @@
+{ stdenv
+, buildPythonPackage
+, fetchPypi
+, pytz
+, six
+}:
+
+buildPythonPackage rec {
+  pname = "django-modelcluster";
+  version = "0.6.2";
+
+  src = fetchPypi {
+    inherit pname version;
+    sha256 = "1plsdi44dvsj2sfx79lsrccjfg0ymajcsf5n0mln4cwd4qi5mwpx";
+  };
+
+  doCheck = false;
+
+  propagatedBuildInputs = [ pytz six ];
+
+  meta = with stdenv.lib; {
+    description = "Django extension to allow working with 'clusters' of models as a single unit, independently of the database";
+    homepage = https://github.com/torchbox/django-modelcluster/;
+    license = licenses.bsd2;
+    maintainers = with maintainers; [ desiderius ];
+  };
+
+}
diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix
index 1b6170b6e4f0..e0a5a8c4303c 100644
--- a/pkgs/top-level/python-packages.nix
+++ b/pkgs/top-level/python-packages.nix
@@ -2300,26 +2300,7 @@ in {
 
   django_nose = callPackage ../development/python-modules/django_nose { };
 
-  django_modelcluster = buildPythonPackage rec {
-    name = "django-modelcluster-${version}";
-    version = "0.6.2";
-
-    src = pkgs.fetchurl {
-      url = "mirror://pypi/d/django-modelcluster/django-modelcluster-${version}.tar.gz";
-      sha256 = "1plsdi44dvsj2sfx79lsrccjfg0ymajcsf5n0mln4cwd4qi5mwpx";
-    };
-
-    doCheck = false;
-
-    propagatedBuildInputs = with self; [ pytz six ];
-
-    meta = {
-      description = "Django extension to allow working with 'clusters' of models as a single unit, independently of the database";
-      homepage = https://github.com/torchbox/django-modelcluster/;
-      license = licenses.bsd2;
-      maintainers = with maintainers; [ desiderius ];
-    };
-  };
+  django_modelcluster = callPackage ../development/python-modules/django_modelcluster { };
 
   djangorestframework = callPackage ../development/python-modules/djangorestframework { };