python312Packages.django-model-utils: refactor
This commit is contained in:
parent
936647b5cd
commit
a17ddd589f
@ -2,10 +2,6 @@
|
|||||||
, buildPythonPackage
|
, buildPythonPackage
|
||||||
, fetchFromGitHub
|
, fetchFromGitHub
|
||||||
, django
|
, django
|
||||||
, freezegun
|
|
||||||
, psycopg2
|
|
||||||
, pytest-django
|
|
||||||
, pytestCheckHook
|
|
||||||
, pythonOlder
|
, pythonOlder
|
||||||
, setuptools-scm
|
, setuptools-scm
|
||||||
}:
|
}:
|
||||||
@ -13,7 +9,7 @@
|
|||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "django-model-utils";
|
pname = "django-model-utils";
|
||||||
version = "4.5.0";
|
version = "4.5.0";
|
||||||
format = "setuptools";
|
pyproject = true;
|
||||||
|
|
||||||
disabled = pythonOlder "3.8";
|
disabled = pythonOlder "3.8";
|
||||||
|
|
||||||
@ -24,26 +20,21 @@ buildPythonPackage rec {
|
|||||||
hash = "sha256-ZEnDk4kCXyhLvq3CZTK/zP3IK6BsNRqbkfqKAuU6Mfk=";
|
hash = "sha256-ZEnDk4kCXyhLvq3CZTK/zP3IK6BsNRqbkfqKAuU6Mfk=";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [
|
build-system = [
|
||||||
setuptools-scm
|
setuptools-scm
|
||||||
];
|
];
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
dependencies = [
|
||||||
django
|
django
|
||||||
];
|
];
|
||||||
|
|
||||||
# requires postgres database
|
# Test requires postgres database
|
||||||
doCheck = false;
|
doCheck = false;
|
||||||
|
|
||||||
nativeCheckInputs = [
|
pythonImportsCheck = [
|
||||||
freezegun
|
"model_utils"
|
||||||
psycopg2
|
|
||||||
pytest-django
|
|
||||||
pytestCheckHook
|
|
||||||
];
|
];
|
||||||
|
|
||||||
pythonImportsCheck = [ "model_utils" ];
|
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
homepage = "https://github.com/jazzband/django-model-utils";
|
homepage = "https://github.com/jazzband/django-model-utils";
|
||||||
description = "Django model mixins and utilities";
|
description = "Django model mixins and utilities";
|
||||||
|
Loading…
Reference in New Issue
Block a user