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.2.0"; 16 disabled = pythonOlder "3.6"; 17 18 src = fetchFromGitHub { 19 owner = "jazzband"; 20 repo = "django-model-utils"; 21 rev = version; 22 sha256 = "sha256-TLqvpP/ZaGGFdqnN+UHbhXv1K1YVYTYBkCiWCjYrFh8="; 23 }; 24 25 SETUPTOOLS_SCM_PRETEND_VERSION = version; 26 27 nativeBuildInputs = [ 28 setuptools-scm 29 ]; 30 31 propagatedBuildInputs = [ 32 django 33 ]; 34 35 # requires postgres database 36 doCheck = false; 37 38 checkInputs = [ 39 freezegun 40 psycopg2 41 pytest-django 42 pytestCheckHook 43 ]; 44 45 pythonImportsCheck = [ "model_utils" ]; 46 47 meta = with lib; { 48 homepage = "https://github.com/jazzband/django-model-utils"; 49 description = "Django model mixins and utilities"; 50 license = licenses.bsd3; 51 maintainers = with maintainers; [ SuperSandro2000 ]; 52 }; 53}