pythonPackages.django_treebeard: refactor move to python-modules
This commit is contained in:
parent
13b5bfbad4
commit
0e8cf61604
30
pkgs/development/python-modules/django_treebeard/default.nix
Normal file
30
pkgs/development/python-modules/django_treebeard/default.nix
Normal file
@ -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;
|
||||||
|
};
|
||||||
|
|
||||||
|
}
|
@ -2314,25 +2314,7 @@ in {
|
|||||||
|
|
||||||
django_taggit = callPackage ../development/python-modules/django_taggit { };
|
django_taggit = callPackage ../development/python-modules/django_taggit { };
|
||||||
|
|
||||||
django_treebeard = buildPythonPackage rec {
|
django_treebeard = callPackage ../development/python-modules/django_treebeard { };
|
||||||
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_pipeline = callPackage ../development/python-modules/django-pipeline { };
|
django_pipeline = callPackage ../development/python-modules/django-pipeline { };
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user