7e47f3658e
GitOrigin-RevId: 1925c603f17fc89f4c8f6bf6f631a802ad85d784
40 lines
879 B
Nix
40 lines
879 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
django,
|
|
pythonOlder,
|
|
setuptools-scm,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "django-model-utils";
|
|
version = "5.0.0";
|
|
pyproject = true;
|
|
|
|
disabled = pythonOlder "3.8";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "jazzband";
|
|
repo = "django-model-utils";
|
|
rev = "refs/tags/${version}";
|
|
hash = "sha256-iRtTYXsgD8NYG3k9ZWAr2Nwazo3HUa6RgdbMeDxc7NI=";
|
|
};
|
|
|
|
build-system = [ setuptools-scm ];
|
|
|
|
dependencies = [ django ];
|
|
|
|
# Test requires postgres database
|
|
doCheck = false;
|
|
|
|
pythonImportsCheck = [ "model_utils" ];
|
|
|
|
meta = with lib; {
|
|
homepage = "https://github.com/jazzband/django-model-utils";
|
|
description = "Django model mixins and utilities";
|
|
changelog = "https://github.com/jazzband/django-model-utils/blob/${version}/CHANGES.rst";
|
|
license = licenses.bsd3;
|
|
maintainers = [ ];
|
|
};
|
|
}
|