python3Packages.django-mptt: init at 0.13.4

This commit is contained in:
Martin Weinelt
2021-11-02 18:31:39 +01:00
parent 8279c16291
commit 47b520fc0a
2 changed files with 44 additions and 0 deletions
@@ -0,0 +1,42 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, django
, django-js-asset
, python
}:
buildPythonPackage rec {
pname = "django-mptt";
version = "0.13.4";
format = "setuptools";
src = fetchFromGitHub {
owner = pname;
repo = pname;
rev = version;
sha256 = "12y3chxhqxk2yxin055f0f45nabj0s8hil12hw0lwzlbax6k9ss6";
};
propagatedBuildInputs = [
django
django-js-asset
];
pythonImportsCheck = [
"mptt"
];
checkPhase = ''
runHook preCheck
${python.interpreter} tests/manage.py test
runHook postCheck
'';
meta = with lib; {
description = "Utilities for implementing a modified pre-order traversal tree in Django";
homepage = "https://github.com/django-mptt/django-mptt";
maintainers = with maintainers; [ hexa ];
license = with licenses; [ mit ];
};
}
+2
View File
@@ -2151,6 +2151,8 @@ in {
django-maintenance-mode = callPackage ../development/python-modules/django-maintenance-mode { };
django-mptt = callPackage ../development/python-modules/django-mptt { };
django_nose = callPackage ../development/python-modules/django_nose { };
django-oauth-toolkit = callPackage ../development/python-modules/django-oauth-toolkit { };