From 151e1ba03e345a9261f0af3b18a8b2eced7fe1fa Mon Sep 17 00:00:00 2001 From: Thomas Boerger Date: Tue, 22 Mar 2022 15:51:53 +0100 Subject: [PATCH] python3Packages.anyconfig: init at 0.12.0 --- .../python-modules/anyconfig/default.nix | 48 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 50 insertions(+) create mode 100644 pkgs/development/python-modules/anyconfig/default.nix diff --git a/pkgs/development/python-modules/anyconfig/default.nix b/pkgs/development/python-modules/anyconfig/default.nix new file mode 100644 index 00000000000..3e0e347bbfa --- /dev/null +++ b/pkgs/development/python-modules/anyconfig/default.nix @@ -0,0 +1,48 @@ +{ buildPythonPackage +, fetchPypi +, lib +, pytestCheckHook +, setuptools +}: + +buildPythonPackage rec { + pname = "anyconfig"; + version = "0.12.0"; + + src = fetchPypi { + inherit pname version; + sha256 = "sha256-MJHXZ1dAaG+t6FdVU38qfGzO+oZZxbtWF04C3tdLltU="; + }; + + postPatch = '' + substituteInPlace setup.cfg \ + --replace "--cov=src -vv" "" + ''; + + propagatedBuildInputs = [ + setuptools + ]; + + checkInputs = [ + pytestCheckHook + ]; + + disabledTests = [ + # OSError: /build/anyconfig-0.12.0/tests/res/cli/no_template/10/e/10.* should exists but not + "test_runs_for_datasets" + ]; + + disabledTestPaths = [ + # NameError: name 'TT' is not defined + "tests/schema/test_jsonschema.py" + ]; + + pythonImportsCheck = [ "anyconfig" ]; + + meta = with lib; { + description = "Python library provides common APIs to load and dump configuration files in various formats"; + homepage = "https://github.com/ssato/python-anyconfig"; + license = licenses.mit; + maintainers = with maintainers; [ tboerger ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 542b0961b01..b23cfcb73ee 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -546,6 +546,8 @@ in { anybadge = callPackage ../development/python-modules/anybadge { }; + anyconfig = callPackage ../development/python-modules/anyconfig { }; + anyio = callPackage ../development/python-modules/anyio { }; anytree = callPackage ../development/python-modules/anytree {