depot/third_party/nixpkgs/pkgs/development/python-modules/django-model-utils/default.nix
Default email 5ca88bfbb9 Project import generated by Copybara.
GitOrigin-RevId: 9f918d616c5321ad374ae6cb5ea89c9e04bf3e58
2024-07-31 10:19:44 +00:00

40 lines
879 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
django,
pythonOlder,
setuptools-scm,
}:
buildPythonPackage rec {
pname = "django-model-utils";
version = "4.5.1";
pyproject = true;
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "jazzband";
repo = "django-model-utils";
rev = "refs/tags/${version}";
hash = "sha256-GaBTCrEwEkJyVeY5YVptPioYcmivyQtBKjs+TgC9IqA=";
};
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 = [ ];
};
}