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