summary refs log tree commit diff
path: root/pkgs
diff options
context:
space:
mode:
authorChris Ostrouchov <chris.ostrouchov@gmail.com>2018-10-16 14:00:54 -0400
committerFrederik Rietdijk <fridh@fridh.nl>2018-10-17 07:46:59 +0200
commit0e8cf61604b0d8bf439e98698da39125f4292dfe (patch)
treee82eec5233d6ae56a9b0a3a6de4155c59ded1bc6 /pkgs
parent13b5bfbad4407ea746e0a4cca42585439f6f80e6 (diff)
downloadnixlib-0e8cf61604b0d8bf439e98698da39125f4292dfe.tar
nixlib-0e8cf61604b0d8bf439e98698da39125f4292dfe.tar.gz
nixlib-0e8cf61604b0d8bf439e98698da39125f4292dfe.tar.bz2
nixlib-0e8cf61604b0d8bf439e98698da39125f4292dfe.tar.lz
nixlib-0e8cf61604b0d8bf439e98698da39125f4292dfe.tar.xz
nixlib-0e8cf61604b0d8bf439e98698da39125f4292dfe.tar.zst
nixlib-0e8cf61604b0d8bf439e98698da39125f4292dfe.zip
pythonPackages.django_treebeard: refactor move to python-modules
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/development/python-modules/django_treebeard/default.nix30
-rw-r--r--pkgs/top-level/python-packages.nix20
2 files changed, 31 insertions, 19 deletions
diff --git a/pkgs/development/python-modules/django_treebeard/default.nix b/pkgs/development/python-modules/django_treebeard/default.nix
new file mode 100644
index 000000000000..5c45b18be640
--- /dev/null
+++ b/pkgs/development/python-modules/django_treebeard/default.nix
@@ -0,0 +1,30 @@
+{ stdenv
+, buildPythonPackage
+, fetchPypi
+, pytest
+, django
+}:
+
+buildPythonPackage rec {
+  pname = "django-treebeard";
+  version = "4.3";
+
+  src = fetchPypi {
+    inherit pname version;
+    sha256 = "c21db06a8d4943bf2a28d9d7a119058698fb76116df2679ecbf15a46a501de42";
+  };
+
+  buildInputs = [ pytest ];
+  propagatedBuildInputs = [ django ];
+
+  # tests fail  "AppRegistryNotReady("Apps aren't loaded yet.")"
+  doCheck = false;
+
+  meta = with stdenv.lib; {
+    description = "Efficient tree implementations for Django 1.6+";
+    homepage = https://tabo.pe/projects/django-treebeard/;
+    maintainers = with maintainers; [ desiderius ];
+    license = licenses.asl20;
+  };
+
+}
diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix
index c2444cd878a3..8d37e86f2ae0 100644
--- a/pkgs/top-level/python-packages.nix
+++ b/pkgs/top-level/python-packages.nix
@@ -2314,25 +2314,7 @@ in {
 
   django_taggit = callPackage ../development/python-modules/django_taggit { };
 
-  django_treebeard = buildPythonPackage rec {
-    name = "django-treebeard-${version}";
-    version = "3.0";
-
-    src = pkgs.fetchurl {
-      url = "mirror://pypi/d/django-treebeard/${name}.tar.gz";
-      sha256 = "10p9rb2m1zccszg7590fjd0in6rabzsh86f5m7qm369mapc3b6dc";
-    };
-
-    buildInputs = with self; [ pytest ];
-    propagatedBuildInputs = with self; [ django ];
-
-    meta = {
-      description = "Efficient tree implementations for Django 1.6+";
-      homepage = https://tabo.pe/projects/django-treebeard/;
-      maintainers = with maintainers; [ desiderius ];
-      license = licenses.asl20;
-    };
-  };
+  django_treebeard = callPackage ../development/python-modules/django_treebeard { };
 
   django_pipeline = callPackage ../development/python-modules/django-pipeline { };