at master 1.1 kB view raw
1{ 2 buildPythonPackage, 3 fetchPypi, 4 lib, 5 pytestCheckHook, 6 setuptools, 7}: 8 9buildPythonPackage rec { 10 pname = "anyconfig"; 11 version = "0.14.0"; 12 format = "setuptools"; 13 14 src = fetchPypi { 15 inherit pname version; 16 hash = "sha256-LN9Ur12ujpF0Pe2CxU7Z2Krvo6lyL11F6bX3S2A+AU0="; 17 }; 18 19 postPatch = '' 20 sed -i '/addopts =/d' setup.cfg 21 ''; 22 23 propagatedBuildInputs = [ setuptools ]; 24 25 nativeCheckInputs = [ pytestCheckHook ]; 26 27 disabledTests = [ 28 # OSError: /build/anyconfig-0.12.0/tests/res/cli/no_template/10/e/10.* should exists but not 29 "test_runs_for_datasets" 30 ]; 31 32 disabledTestPaths = [ 33 # NameError: name 'TT' is not defined 34 "tests/schema/test_jsonschema.py" 35 "tests/backend/loaders/pickle/test_pickle_stdlib.py" 36 ]; 37 38 pythonImportsCheck = [ "anyconfig" ]; 39 40 meta = with lib; { 41 description = "Python library provides common APIs to load and dump configuration files in various formats"; 42 mainProgram = "anyconfig_cli"; 43 homepage = "https://github.com/ssato/python-anyconfig"; 44 license = licenses.mit; 45 maintainers = with maintainers; [ tboerger ]; 46 }; 47}