depot/third_party/nixpkgs/pkgs/development/python-modules/django-mptt/default.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

41 lines
831 B
Nix

{
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 ];
};
}