depot/third_party/nixpkgs/pkgs/development/python-modules/django-simple-history/default.nix
Default email f34ce41345 Project import generated by Copybara.
GitOrigin-RevId: b73c2221a46c13557b1b3be9c2070cc42cf01eb3
2024-07-27 08:49:29 +02:00

50 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.7.0";
format = "setuptools";
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "jazzband";
repo = "django-simple-history";
rev = "refs/tags/${version}";
hash = "sha256-bPdMdtiEDRvRD00ZBwUQkeCDKCx2SW65+FsbuMwVdK0=";
};
nativeBuildInputs = [
hatch-fancy-pypi-readme
hatchling
hatch-vcs
];
propagatedBuildInputs = [ django ];
checkPhase = ''
runHook preCheck
${python.interpreter} runtests.py
runHook postCheck
'';
pythonImportsCheck = [ "simple_history" ];
meta = with lib; {
description = "django-simple-history stores 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/${version}";
license = licenses.bsd3;
maintainers = with maintainers; [ derdennisop ];
};
}