python3Packages.configupdater: init at 3.1.1

This commit is contained in:
Robert Scott 2022-10-02 18:23:46 +01:00
parent 8cefc55ae4
commit 988c30258c
2 changed files with 39 additions and 0 deletions

View File

@ -0,0 +1,37 @@
{ lib
, buildPythonPackage
, fetchPypi
, pytestCheckHook
, setuptools-scm
}:
buildPythonPackage rec {
pname = "configupdater";
version = "3.1.1";
src = fetchPypi {
inherit version;
pname = "ConfigUpdater";
sha256 = "sha256-RvDHTXPvpyN3Z2S0PJc59oBSSV3T1zQxnB0OtYUR8Vs=";
};
postPatch = ''
substituteInPlace setup.cfg \
--replace '--cov configupdater --cov-report term-missing' ""
'';
nativeBuildInputs = [ setuptools-scm ];
pythonImportsCheck = [ "configupdater" ];
checkInputs = [
pytestCheckHook
];
meta = with lib; {
description = "Parser like ConfigParser but for updating configuration files";
homepage = "https://configupdater.readthedocs.io/en/latest/";
license = with licenses; [ mit psfl ];
maintainers = with maintainers; [ ris ];
};
}

View File

@ -2030,6 +2030,8 @@ in {
configshell = callPackage ../development/python-modules/configshell { };
configupdater = callPackage ../development/python-modules/configupdater { };
confluent-kafka = callPackage ../development/python-modules/confluent-kafka { };
confuse = callPackage ../development/python-modules/confuse { };