mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-20 20:53:48 +00:00
43 lines
847 B
Nix
43 lines
847 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, django
|
|
, fetchPypi
|
|
, pytest-django
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "django-treebeard";
|
|
version = "4.6.1";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.8";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-hKs1BAJ31STrd5OeI1VoychWy1I8yWVXk7Zv6aPvRos=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
django
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
pytest-django
|
|
pytestCheckHook
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"treebeard"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Efficient tree implementations for Django";
|
|
homepage = "https://tabo.pe/projects/django-treebeard/";
|
|
changelog = "https://github.com/django-treebeard/django-treebeard/blob/${version}/CHANGES.md";
|
|
license = licenses.asl20;
|
|
maintainers = with maintainers; [ desiderius ];
|
|
};
|
|
}
|