about summary refs log tree commit diff
path: root/pkgs/development/python-modules/configupdater
diff options
context:
space:
mode:
authorRobert Scott <code@humanleg.org.uk>2022-10-02 18:23:46 +0100
committerRobert Scott <code@humanleg.org.uk>2022-10-05 19:24:58 +0100
commit988c30258cfa49ac7e0d402ebea4c55dd032bf01 (patch)
tree6789f20f81e0e1be8bbc478f91248de181d7aa61 /pkgs/development/python-modules/configupdater
parent8cefc55ae4f4977f97b3c0f2f5ad145ea567fdbb (diff)
python3Packages.configupdater: init at 3.1.1
Diffstat (limited to 'pkgs/development/python-modules/configupdater')
-rw-r--r--pkgs/development/python-modules/configupdater/default.nix37
1 files changed, 37 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/configupdater/default.nix b/pkgs/development/python-modules/configupdater/default.nix
new file mode 100644
index 0000000000000..8dae9c0f8c95b
--- /dev/null
+++ b/pkgs/development/python-modules/configupdater/default.nix
@@ -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 ];
+  };
+}