diff options
Diffstat (limited to 'nixpkgs/pkgs/development/python-modules/django-mptt/default.nix')
-rw-r--r-- | nixpkgs/pkgs/development/python-modules/django-mptt/default.nix | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/python-modules/django-mptt/default.nix b/nixpkgs/pkgs/development/python-modules/django-mptt/default.nix new file mode 100644 index 000000000000..53dac2a781f4 --- /dev/null +++ b/nixpkgs/pkgs/development/python-modules/django-mptt/default.nix @@ -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 ]; + }; +} |