1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 django, 6 pythonOlder, 7 setuptools-scm, 8}: 9 10buildPythonPackage rec { 11 pname = "django-model-utils"; 12 version = "5.0.0"; 13 pyproject = true; 14 15 disabled = pythonOlder "3.8"; 16 17 src = fetchFromGitHub { 18 owner = "jazzband"; 19 repo = "django-model-utils"; 20 tag = version; 21 hash = "sha256-iRtTYXsgD8NYG3k9ZWAr2Nwazo3HUa6RgdbMeDxc7NI="; 22 }; 23 24 build-system = [ setuptools-scm ]; 25 26 dependencies = [ django ]; 27 28 # Test requires postgres database 29 doCheck = false; 30 31 pythonImportsCheck = [ "model_utils" ]; 32 33 meta = with lib; { 34 homepage = "https://github.com/jazzband/django-model-utils"; 35 description = "Django model mixins and utilities"; 36 changelog = "https://github.com/jazzband/django-model-utils/blob/${version}/CHANGES.rst"; 37 license = licenses.bsd3; 38 maintainers = [ ]; 39 }; 40}