mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-28 01:43:15 +00:00
Merge pull request #251945 from DerDennisOP/django-simple-history
python3.pkgs.django-simple-history: init at 3.4.0
This commit is contained in:
commit
1b533471e9
@ -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 ];
|
||||
};
|
||||
}
|
@ -3038,6 +3038,8 @@ self: super: with self; {
|
||||
|
||||
django-simple-captcha = callPackage ../development/python-modules/django-simple-captcha { };
|
||||
|
||||
django-simple-history = callPackage ../development/python-modules/django-simple-history { };
|
||||
|
||||
django-sites = callPackage ../development/python-modules/django-sites { };
|
||||
|
||||
django-sr = callPackage ../development/python-modules/django-sr { };
|
||||
|
Loading…
Reference in New Issue
Block a user