mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-12-04 11:50:01 +00:00
generated using https://git.kybe.xyz/2kybe3/nixpkgs-github-redirect continuation of: #580644
48 lines
1.0 KiB
Nix
48 lines
1.0 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
django,
|
|
fetchFromGitHub,
|
|
hatch-fancy-pypi-readme,
|
|
hatchling,
|
|
hatch-vcs,
|
|
python,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "django-simple-history";
|
|
version = "3.11.0";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "django-commons";
|
|
repo = "django-simple-history";
|
|
tag = version;
|
|
hash = "sha256-pTWorV++YSr/oIdcShrJTBUFfn5ekJ29rNn6ltDhN5Q=";
|
|
};
|
|
|
|
build-system = [
|
|
hatch-fancy-pypi-readme
|
|
hatchling
|
|
hatch-vcs
|
|
];
|
|
|
|
dependencies = [ django ];
|
|
|
|
checkPhase = ''
|
|
runHook preCheck
|
|
${python.interpreter} runtests.py
|
|
runHook postCheck
|
|
'';
|
|
|
|
pythonImportsCheck = [ "simple_history" ];
|
|
|
|
meta = {
|
|
description = "Module to store Django model state on every create/update/delete";
|
|
homepage = "https://github.com/django-commons/django-simple-history/";
|
|
changelog = "https://github.com/django-commons/django-simple-history/releases/tag/${src.tag}";
|
|
license = lib.licenses.bsd3;
|
|
maintainers = with lib.maintainers; [ derdennisop ];
|
|
};
|
|
}
|