Files
nixpkgs/pkgs/development/python-modules/django-model-utils/default.nix
Jörg Thalheim 5356420466 treewide: remove unused with statements from maintainer lists
$ find -type f -name '*.nix' -print0 | xargs -P "$(nproc)" -0 sed -i \
  -e 's!with lib.maintainers; \[ *\];![ ];!' \
  -e 's!with maintainers; \[ *\];![ ];!'
2024-07-29 10:06:20 +08:00

41 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 = [ ];
};
}