python312Packages.django-model-utils: refactor

This commit is contained in:
Fabian Affolter 2024-04-02 09:43:43 +02:00 committed by GitHub
parent 936647b5cd
commit a17ddd589f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -2,10 +2,6 @@
, buildPythonPackage
, fetchFromGitHub
, django
, freezegun
, psycopg2
, pytest-django
, pytestCheckHook
, pythonOlder
, setuptools-scm
}:
@ -13,7 +9,7 @@
buildPythonPackage rec {
pname = "django-model-utils";
version = "4.5.0";
format = "setuptools";
pyproject = true;
disabled = pythonOlder "3.8";
@ -24,26 +20,21 @@ buildPythonPackage rec {
hash = "sha256-ZEnDk4kCXyhLvq3CZTK/zP3IK6BsNRqbkfqKAuU6Mfk=";
};
nativeBuildInputs = [
build-system = [
setuptools-scm
];
propagatedBuildInputs = [
dependencies = [
django
];
# requires postgres database
# Test requires postgres database
doCheck = false;
nativeCheckInputs = [
freezegun
psycopg2
pytest-django
pytestCheckHook
pythonImportsCheck = [
"model_utils"
];
pythonImportsCheck = [ "model_utils" ];
meta = with lib; {
homepage = "https://github.com/jazzband/django-model-utils";
description = "Django model mixins and utilities";