python3Packages.django-money: init at 3.5.4

This commit is contained in:
kurogeek
2026-03-09 14:22:11 +07:00
parent 880185d00d
commit fb334bd463
2 changed files with 57 additions and 0 deletions
@@ -0,0 +1,55 @@
{
fetchFromGitHub,
buildPythonPackage,
setuptools,
lib,
django,
py-moneyed,
certifi,
pytestCheckHook,
pytest-django,
pytest-cov,
pythonOlder,
}:
buildPythonPackage rec {
pname = "django-money";
version = "3.5.4";
pyproject = true;
src = fetchFromGitHub {
owner = "django-money";
repo = "django-money";
tag = version;
hash = "sha256-JqAZaiJ2zCb7Jwvumqi16IrQ6clmcw71WpPzbhE2Fms=";
};
disabled = pythonOlder "3.7";
dependencies = [
django
certifi
py-moneyed
];
build-system = [ setuptools ];
doCheck = true;
nativeCheckInputs = [
pytestCheckHook
pytest-django
pytest-cov
];
pythonImportsCheck = [ "djmoney" ];
# avoid tests which import mixer, an abandoned library
disabledTests = [
"test_mixer_blend"
];
meta = with lib; {
description = "Money fields for Django forms and models.";
homepage = "https://github.com/django-money/django-money";
changelog = "https://github.com/django-money/django-money/releases/tag/${version}";
license = licenses.bsd3;
maintainers = with maintainers; [ kurogeek ];
};
}
+2
View File
@@ -4256,6 +4256,8 @@ self: super: with self; {
django-modeltranslation = callPackage ../development/python-modules/django-modeltranslation { };
django-money = callPackage ../development/python-modules/django-money { };
django-mptt = callPackage ../development/python-modules/django-mptt { };
django-multiselectfield = callPackage ../development/python-modules/django-multiselectfield { };