python3Packages.anyconfig: init at 0.12.0

This commit is contained in:
Thomas Boerger 2022-03-22 15:51:53 +01:00 committed by Sandro Jäckel
parent b4c2ffaffa
commit 151e1ba03e
No known key found for this signature in database
GPG key ID: 3AF5A43A3EECC2E5
2 changed files with 50 additions and 0 deletions

View file

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

View file

@ -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 {