1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5 pytestCheckHook,
6 setuptools-scm,
7}:
8
9buildPythonPackage rec {
10 pname = "configupdater";
11 version = "3.2";
12 format = "setuptools";
13
14 src = fetchPypi {
15 inherit version;
16 pname = "ConfigUpdater";
17 hash = "sha256-n9rFODHBsGKSm/OYtkm4fKMOfxpzXz+/SCBygEEGMGs=";
18 };
19
20 postPatch = ''
21 substituteInPlace setup.cfg \
22 --replace '--cov configupdater --cov-report term-missing' ""
23 '';
24
25 nativeBuildInputs = [ setuptools-scm ];
26
27 pythonImportsCheck = [ "configupdater" ];
28
29 nativeCheckInputs = [ pytestCheckHook ];
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; [
35 mit
36 psfl
37 ];
38 maintainers = with maintainers; [ ris ];
39 };
40}