Files
nixpkgs/pkgs/development/python-modules/django-hierarkey/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

53 lines
1003 B
Nix

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