1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, django 5, freezegun 6, psycopg2 7, pytest-django 8, pytestCheckHook 9, pythonOlder 10, setuptools-scm 11}: 12 13buildPythonPackage rec { 14 pname = "django-model-utils"; 15 version = "4.3.1"; 16 format = "setuptools"; 17 18 disabled = pythonOlder "3.6"; 19 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 }; 26 27 SETUPTOOLS_SCM_PRETEND_VERSION = version; 28 29 nativeBuildInputs = [ 30 setuptools-scm 31 ]; 32 33 propagatedBuildInputs = [ 34 django 35 ]; 36 37 # requires postgres database 38 doCheck = false; 39 40 nativeCheckInputs = [ 41 freezegun 42 psycopg2 43 pytest-django 44 pytestCheckHook 45 ]; 46 47 pythonImportsCheck = [ "model_utils" ]; 48 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 }; 56}