Files
nixpkgs/pkgs/development/python-modules/django-money/default.nix
T
2026-03-09 14:22:11 +07:00

56 lines
1.1 KiB
Nix

{
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 ];
};
}