2022-05-27 23:58:04 +02:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
|
|
|
django,
|
|
|
|
pythonOlder,
|
|
|
|
setuptools-scm,
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "django-model-utils";
|
2024-05-02 23:04:16 +00:00
|
|
|
version = "4.5.1";
|
2024-04-02 09:43:43 +02:00
|
|
|
pyproject = true;
|
2023-05-01 14:56:37 +02:00
|
|
|
|
2024-03-07 17:33:15 +01:00
|
|
|
disabled = pythonOlder "3.8";
|
2022-05-27 23:58:04 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "jazzband";
|
|
|
|
repo = "django-model-utils";
|
2023-05-01 14:56:37 +02:00
|
|
|
rev = "refs/tags/${version}";
|
2024-05-02 23:04:16 +00:00
|
|
|
hash = "sha256-GaBTCrEwEkJyVeY5YVptPioYcmivyQtBKjs+TgC9IqA=";
|
2022-05-27 23:58:04 +02:00
|
|
|
};
|
|
|
|
|
2024-04-02 09:43:43 +02:00
|
|
|
build-system = [ setuptools-scm ];
|
2022-05-27 23:58:04 +02:00
|
|
|
|
2024-04-02 09:43:43 +02:00
|
|
|
dependencies = [ django ];
|
2022-05-27 23:58:04 +02:00
|
|
|
|
2024-04-02 09:43:43 +02:00
|
|
|
# Test requires postgres database
|
2022-05-27 23:58:04 +02:00
|
|
|
doCheck = false;
|
|
|
|
|
2024-04-02 09:43:43 +02:00
|
|
|
pythonImportsCheck = [ "model_utils" ];
|
2022-05-27 23:58:04 +02:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://github.com/jazzband/django-model-utils";
|
|
|
|
description = "Django model mixins and utilities";
|
2023-05-01 14:56:37 +02:00
|
|
|
changelog = "https://github.com/jazzband/django-model-utils/blob/${version}/CHANGES.rst";
|
2022-05-27 23:58:04 +02:00
|
|
|
license = licenses.bsd3;
|
2023-07-23 19:30:22 +02:00
|
|
|
maintainers = with maintainers; [ ];
|
2022-05-27 23:58:04 +02:00
|
|
|
};
|
|
|
|
}
|