biome: 1.9.2 -> 1.9.3 (#349335)
[NixPkgs.git] / pkgs / development / python-modules / django-simple-history / default.nix
blob45e1854de8d949ed4c332df8a004932a195637b9
2   lib,
3   buildPythonPackage,
4   django,
5   fetchFromGitHub,
6   hatch-fancy-pypi-readme,
7   hatchling,
8   hatch-vcs,
9   python,
10   pythonOlder,
13 buildPythonPackage rec {
14   pname = "django-simple-history";
15   version = "3.7.0";
16   pyproject = true;
18   disabled = pythonOlder "3.8";
20   src = fetchFromGitHub {
21     owner = "jazzband";
22     repo = "django-simple-history";
23     rev = "refs/tags/${version}";
24     hash = "sha256-bPdMdtiEDRvRD00ZBwUQkeCDKCx2SW65+FsbuMwVdK0=";
25   };
27   build-system = [
28     hatch-fancy-pypi-readme
29     hatchling
30     hatch-vcs
31   ];
33   dependencies = [ django ];
35   checkPhase = ''
36     runHook preCheck
37     ${python.interpreter} runtests.py
38     runHook postCheck
39   '';
41   pythonImportsCheck = [ "simple_history" ];
43   meta = with lib; {
44     description = "Module to store Django model state on every create/update/delete";
45     homepage = "https://github.com/jazzband/django-simple-history/";
46     changelog = "https://github.com/jazzband/django-simple-history/releases/tag/${version}";
47     license = licenses.bsd3;
48     maintainers = with maintainers; [ derdennisop ];
49   };