Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / django-simple-history / default.nix
blob5ed17c5f6425b9fe9e38b2c39415a78bce1e6c45
1 { lib
2 , buildPythonPackage
3 , django
4 , fetchFromGitHub
5 , pytest-django
6 , python
7 , pythonOlder
8 , setuptools-scm
9 }:
11 buildPythonPackage rec {
12   pname = "django-simple-history";
13   version = "3.4.0";
14   format = "setuptools";
16   disabled = pythonOlder "3.8";
18   src = fetchFromGitHub {
19     owner = "jazzband";
20     repo = "django-simple-history";
21     rev = "refs/tags/${version}";
22     hash = "sha256-XY6YNajwX5z3AXkYYGFtrURDqxub9EQwu52jQ7CZwrI=";
23   };
25   env.SETUPTOOLS_SCM_PRETEND_VERSION = version;
27   nativeBuildInputs = [
28     setuptools-scm
29   ];
31   propagatedBuildInputs = [
32     django
33   ];
35   checkPhase = ''
36     ${python.interpreter} runtests.py
37   '';
39   pythonImportsCheck = [
40     "simple_history"
41   ];
43   meta = with lib; {
44     description = "django-simple-history stores 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   };