1{ buildPythonPackage
2, fetchPypi
3, lib
4, pytestCheckHook
5, setuptools
6}:
7
8buildPythonPackage rec {
9 pname = "anyconfig";
10 version = "0.13.0";
11
12 src = fetchPypi {
13 inherit pname version;
14 sha256 = "sha256-A/8uF2KvOI+7vtHBq3+fHsAGqR2n2zpouWPabneV0qw=";
15 };
16
17 postPatch = ''
18 substituteInPlace setup.cfg \
19 --replace "--cov=src -vv" ""
20 '';
21
22 propagatedBuildInputs = [
23 setuptools
24 ];
25
26 checkInputs = [
27 pytestCheckHook
28 ];
29
30 disabledTests = [
31 # OSError: /build/anyconfig-0.12.0/tests/res/cli/no_template/10/e/10.* should exists but not
32 "test_runs_for_datasets"
33 ];
34
35 disabledTestPaths = [
36 # NameError: name 'TT' is not defined
37 "tests/schema/test_jsonschema.py"
38 ];
39
40 pythonImportsCheck = [ "anyconfig" ];
41
42 meta = with lib; {
43 description = "Python library provides common APIs to load and dump configuration files in various formats";
44 homepage = "https://github.com/ssato/python-anyconfig";
45 license = licenses.mit;
46 maintainers = with maintainers; [ tboerger ];
47 };
48}