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