python3Packages.py-moneyed: init at 3.0
Co-authored-by: dotlambda <github@dotlambda.de>
This commit is contained in:
@@ -0,0 +1,47 @@
|
||||
{
|
||||
babel,
|
||||
buildPythonPackage,
|
||||
fetchFromGitHub,
|
||||
lib,
|
||||
pytestCheckHook,
|
||||
setuptools,
|
||||
typing-extensions,
|
||||
}:
|
||||
|
||||
buildPythonPackage (finalAttrs: {
|
||||
pname = "py-moneyed";
|
||||
version = "3.0";
|
||||
|
||||
pyproject = true;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "py-moneyed";
|
||||
repo = "py-moneyed";
|
||||
tag = "v${finalAttrs.version}";
|
||||
hash = "sha256-k0ZbLwog6TYxKDLZV7eH1Br8buMPfpOkgp+pMN/qdB8=";
|
||||
};
|
||||
|
||||
build-system = [ setuptools ];
|
||||
|
||||
dependencies = [
|
||||
babel
|
||||
typing-extensions
|
||||
];
|
||||
|
||||
nativeCheckInputs = [ pytestCheckHook ];
|
||||
|
||||
disabledTests = [
|
||||
# babel has more currencies than defined in the package
|
||||
"test_all_babel_currencies"
|
||||
];
|
||||
|
||||
pythonImportsCheck = [ "moneyed" ];
|
||||
|
||||
meta = {
|
||||
description = "Provides Currency and Money classes for use in your Python code";
|
||||
homepage = "https://github.com/py-moneyed/py-moneyed";
|
||||
license = lib.licenses.bsd3;
|
||||
maintainers = with lib.maintainers; [ kurogeek ];
|
||||
changelog = "https://github.com/py-moneyed/py-moneyed/blob/${finalAttrs.src.tag}/CHANGES.rst";
|
||||
};
|
||||
})
|
||||
@@ -13086,6 +13086,8 @@ self: super: with self; {
|
||||
|
||||
py-melissa-climate = callPackage ../development/python-modules/py-melissa-climate { };
|
||||
|
||||
py-moneyed = callPackage ../development/python-modules/py-moneyed { };
|
||||
|
||||
py-multiaddr = callPackage ../development/python-modules/py-multiaddr { };
|
||||
|
||||
py-multibase = callPackage ../development/python-modules/py-multibase { };
|
||||
|
||||
Reference in New Issue
Block a user