Unverified Commit 9f155b24 authored by dotlambda's avatar dotlambda Committed by GitHub
Browse files

python3Packages.py-moneyed: init at 3.0 (#500647)

parents d3655221 1dfc6e22
Loading
Loading
Loading
Loading
+47 −0
Original line number Diff line number Diff line
{
  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";
  };
})
+2 −0
Original line number Diff line number Diff line
@@ -13098,6 +13098,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 { };