nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 buildPythonPackage,
4 django,
5 fetchFromGitHub,
6 pytest-django,
7 pytestCheckHook,
8 setuptools,
9}:
10
11buildPythonPackage (finalAttrs: {
12 pname = "django-treebeard";
13 version = "4.8.0";
14 pyproject = true;
15
16 src = fetchFromGitHub {
17 owner = "django-treebeard";
18 repo = "django-treebeard";
19 tag = finalAttrs.version;
20 hash = "sha256-DrjI0HlrJhNqrYul3SO0xkkFwjWRn94OgvTA/Z3wv84=";
21 };
22
23 build-system = [ setuptools ];
24
25 dependencies = [ django ];
26
27 nativeCheckInputs = [
28 pytest-django
29 pytestCheckHook
30 ];
31
32 pythonImportsCheck = [ "treebeard" ];
33
34 meta = {
35 description = "Efficient tree implementations for Django";
36 homepage = "https://tabo.pe/projects/django-treebeard/";
37 changelog = "https://github.com/django-treebeard/django-treebeard/blob/${finalAttrs.src.tag}/CHANGES.md";
38 license = lib.licenses.asl20;
39 };
40})