diff options
author | Dennis Wuitz <dennish@wuitz.de> | 2023-08-28 12:29:25 +0200 |
---|---|---|
committer | Dennis Wuitz <dennish@wuitz.de> | 2023-08-28 12:29:25 +0200 |
commit | 261473c2fb2e3d9961e075cab5d51e73be203ba8 (patch) | |
tree | 105c8fbba5a4c5b010c59cb9f8c908e93e021338 /pkgs/development/python-modules/django-simple-history | |
parent | 48a24fce1d15b8514f275331346e97c564d880b8 (diff) |
python3.pkgs.django-simple-history: init at 3.4.0
Diffstat (limited to 'pkgs/development/python-modules/django-simple-history')
-rw-r--r-- | pkgs/development/python-modules/django-simple-history/default.nix | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/django-simple-history/default.nix b/pkgs/development/python-modules/django-simple-history/default.nix new file mode 100644 index 0000000000000..5ed17c5f6425b --- /dev/null +++ b/pkgs/development/python-modules/django-simple-history/default.nix @@ -0,0 +1,50 @@ +{ lib +, buildPythonPackage +, django +, fetchFromGitHub +, pytest-django +, python +, pythonOlder +, setuptools-scm +}: + +buildPythonPackage rec { + pname = "django-simple-history"; + version = "3.4.0"; + format = "setuptools"; + + disabled = pythonOlder "3.8"; + + src = fetchFromGitHub { + owner = "jazzband"; + repo = "django-simple-history"; + rev = "refs/tags/${version}"; + hash = "sha256-XY6YNajwX5z3AXkYYGFtrURDqxub9EQwu52jQ7CZwrI="; + }; + + env.SETUPTOOLS_SCM_PRETEND_VERSION = version; + + nativeBuildInputs = [ + setuptools-scm + ]; + + propagatedBuildInputs = [ + django + ]; + + checkPhase = '' + ${python.interpreter} runtests.py + ''; + + 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 ]; + }; +} |