nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 buildPythonPackage,
4 django,
5 fetchFromGitHub,
6 hatch-fancy-pypi-readme,
7 hatchling,
8 hatch-vcs,
9 python,
10}:
11
12buildPythonPackage rec {
13 pname = "django-simple-history";
14 version = "3.11.0";
15 pyproject = true;
16
17 src = fetchFromGitHub {
18 owner = "jazzband";
19 repo = "django-simple-history";
20 tag = version;
21 hash = "sha256-pTWorV++YSr/oIdcShrJTBUFfn5ekJ29rNn6ltDhN5Q=";
22 };
23
24 build-system = [
25 hatch-fancy-pypi-readme
26 hatchling
27 hatch-vcs
28 ];
29
30 dependencies = [ django ];
31
32 checkPhase = ''
33 runHook preCheck
34 ${python.interpreter} runtests.py
35 runHook postCheck
36 '';
37
38 pythonImportsCheck = [ "simple_history" ];
39
40 meta = {
41 description = "Module to store Django model state on every create/update/delete";
42 homepage = "https://github.com/jazzband/django-simple-history/";
43 changelog = "https://github.com/jazzband/django-simple-history/releases/tag/${src.tag}";
44 license = lib.licenses.bsd3;
45 maintainers = with lib.maintainers; [ derdennisop ];
46 };
47}