1{ lib 2, buildPythonPackage 3, fetchPypi 4, pytestCheckHook 5, setuptools-scm 6}: 7 8buildPythonPackage rec { 9 pname = "configupdater"; 10 version = "3.1.1"; 11 12 src = fetchPypi { 13 inherit version; 14 pname = "ConfigUpdater"; 15 hash = "sha256-RvDHTXPvpyN3Z2S0PJc59oBSSV3T1zQxnB0OtYUR8Vs="; 16 }; 17 18 postPatch = '' 19 substituteInPlace setup.cfg \ 20 --replace '--cov configupdater --cov-report term-missing' "" 21 ''; 22 23 nativeBuildInputs = [ setuptools-scm ]; 24 25 pythonImportsCheck = [ "configupdater" ]; 26 27 nativeCheckInputs = [ 28 pytestCheckHook 29 ]; 30 31 meta = with lib; { 32 description = "Parser like ConfigParser but for updating configuration files"; 33 homepage = "https://configupdater.readthedocs.io/en/latest/"; 34 license = with licenses; [ mit psfl ]; 35 maintainers = with maintainers; [ ris ]; 36 }; 37}