Files
nixpkgs/pkgs/development/python-modules/django-simple-history/default.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

51 lines
1.1 KiB
Nix

{
lib,
buildPythonPackage,
django,
fetchFromGitHub,
hatch-fancy-pypi-readme,
hatchling,
hatch-vcs,
python,
pythonOlder,
}:
buildPythonPackage rec {
pname = "django-simple-history";
version = "3.10.1";
pyproject = true;
disabled = pythonOlder "3.9";
src = fetchFromGitHub {
owner = "jazzband";
repo = "django-simple-history";
tag = version;
hash = "sha256-th0ZkHMKWcI6nNhgjpkvmyKaJ/TdWK12mBPUTFab8g4=";
};
build-system = [
hatch-fancy-pypi-readme
hatchling
hatch-vcs
];
dependencies = [ django ];
checkPhase = ''
runHook preCheck
${python.interpreter} runtests.py
runHook postCheck
'';
pythonImportsCheck = [ "simple_history" ];
meta = with lib; {
description = "Module to store Django model state on every create/update/delete";
homepage = "https://github.com/jazzband/django-simple-history/";
changelog = "https://github.com/jazzband/django-simple-history/releases/tag/${src.tag}";
license = licenses.bsd3;
maintainers = with maintainers; [ derdennisop ];
};
}