From 988c30258cfa49ac7e0d402ebea4c55dd032bf01 Mon Sep 17 00:00:00 2001 From: Robert Scott Date: Sun, 2 Oct 2022 18:23:46 +0100 Subject: [PATCH] python3Packages.configupdater: init at 3.1.1 --- .../python-modules/configupdater/default.nix | 37 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 39 insertions(+) create mode 100644 pkgs/development/python-modules/configupdater/default.nix diff --git a/pkgs/development/python-modules/configupdater/default.nix b/pkgs/development/python-modules/configupdater/default.nix new file mode 100644 index 000000000000..8dae9c0f8c95 --- /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 ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 5fc08d1d688a..ba576ac1d407 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -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 { };