1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, django 5, django-js-asset 6, python 7}: 8 9buildPythonPackage rec { 10 pname = "django-mptt"; 11 version = "0.13.4"; 12 format = "setuptools"; 13 14 src = fetchFromGitHub { 15 owner = pname; 16 repo = pname; 17 rev = version; 18 sha256 = "12y3chxhqxk2yxin055f0f45nabj0s8hil12hw0lwzlbax6k9ss6"; 19 }; 20 21 propagatedBuildInputs = [ 22 django 23 django-js-asset 24 ]; 25 26 pythonImportsCheck = [ 27 "mptt" 28 ]; 29 30 checkPhase = '' 31 runHook preCheck 32 ${python.interpreter} tests/manage.py test 33 runHook postCheck 34 ''; 35 36 meta = with lib; { 37 description = "Utilities for implementing a modified pre-order traversal tree in Django"; 38 homepage = "https://github.com/django-mptt/django-mptt"; 39 maintainers = with maintainers; [ hexa ]; 40 license = with licenses; [ mit ]; 41 }; 42}