Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / django-model-utils / default.nix
blob648634b0f32ccc31f6048b5681ab1e5d5d1c5f12
1 { lib
2 , buildPythonPackage
3 , fetchFromGitHub
4 , django
5 , freezegun
6 , psycopg2
7 , pytest-django
8 , pytestCheckHook
9 , pythonOlder
10 , setuptools-scm
13 buildPythonPackage rec {
14   pname = "django-model-utils";
15   version = "4.3.1";
16   format = "setuptools";
18   disabled = pythonOlder "3.6";
20   src = fetchFromGitHub {
21     owner = "jazzband";
22     repo = "django-model-utils";
23     rev = "refs/tags/${version}";
24     hash = "sha256-p3/JO6wNwZPYX7MIgMj/0caHt5s+uL51Sxa28/VITxo=";
25   };
27   SETUPTOOLS_SCM_PRETEND_VERSION = version;
29   nativeBuildInputs = [
30     setuptools-scm
31   ];
33   propagatedBuildInputs = [
34     django
35   ];
37   # requires postgres database
38   doCheck = false;
40   nativeCheckInputs = [
41     freezegun
42     psycopg2
43     pytest-django
44     pytestCheckHook
45   ];
47   pythonImportsCheck = [ "model_utils" ];
49   meta = with lib; {
50     homepage = "https://github.com/jazzband/django-model-utils";
51     description = "Django model mixins and utilities";
52     changelog = "https://github.com/jazzband/django-model-utils/blob/${version}/CHANGES.rst";
53     license = licenses.bsd3;
54     maintainers = with maintainers; [ ];
55   };