2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchPypi,
|
|
|
|
lib,
|
|
|
|
pytestCheckHook,
|
|
|
|
setuptools,
|
2022-03-30 09:31:56 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "anyconfig";
|
2024-04-21 15:54:59 +00:00
|
|
|
version = "0.14.0";
|
2024-01-02 11:29:13 +00:00
|
|
|
format = "setuptools";
|
2022-03-30 09:31:56 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2024-04-21 15:54:59 +00:00
|
|
|
hash = "sha256-LN9Ur12ujpF0Pe2CxU7Z2Krvo6lyL11F6bX3S2A+AU0=";
|
2022-03-30 09:31:56 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
postPatch = ''
|
2024-04-21 15:54:59 +00:00
|
|
|
sed -i '/addopts =/d' setup.cfg
|
2022-03-30 09:31:56 +00:00
|
|
|
'';
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
propagatedBuildInputs = [ setuptools ];
|
2022-03-30 09:31:56 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
2022-03-30 09:31:56 +00:00
|
|
|
|
|
|
|
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"
|
2024-04-21 15:54:59 +00:00
|
|
|
"tests/backend/loaders/pickle/test_pickle_stdlib.py"
|
2022-03-30 09:31:56 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "anyconfig" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Python library provides common APIs to load and dump configuration files in various formats";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "anyconfig_cli";
|
2022-03-30 09:31:56 +00:00
|
|
|
homepage = "https://github.com/ssato/python-anyconfig";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ tboerger ];
|
|
|
|
};
|
|
|
|
}
|