depot/third_party/nixpkgs/pkgs/development/python-modules/django-hierarkey/default.nix
Default email 5c370c0b2a Project import generated by Copybara.
GitOrigin-RevId: 33d1e753c82ffc557b4a585c77de43d4c922ebb5
2024-05-15 17:35:15 +02:00

59 lines
1 KiB
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
# build-system
, setuptools
# propagates
, python-dateutil
# tests
, django-extensions
, pytest-django
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "django-hierarkey";
version = "1.2.0";
pyproject = true;
src = fetchFromGitHub {
owner = "raphaelm";
repo = "django-hierarkey";
rev = "refs/tags/${version}";
hash = "sha256-1LSH9GwoNF3NrDVNUIHDAVsktyKIprDgB5XlIHeM3fM=";
};
build-system = [
setuptools
];
dependencies = [
python-dateutil
];
pythonImportsCheck = [
"hierarkey"
];
nativeCheckInputs = [
django-extensions
pytest-django
pytestCheckHook
];
DJANGO_SETTINGS_MODULE = "tests.settings";
pytestFlagsArray = [
"tests"
];
meta = with lib; {
description = "Flexible and powerful hierarchical key-value store for your Django models";
homepage = "https://github.com/raphaelm/django-hierarkey";
license = licenses.asl20;
maintainers = with maintainers; [ hexa ];
};
}