From 4141a48395dc601fef95b650d81f9ecdff444434 Mon Sep 17 00:00:00 2001 From: Malik <117918464+malikwirin@users.noreply.github.com> Date: Thu, 27 Feb 2025 16:41:38 +0100 Subject: [PATCH] python3Packages.systemdunitparser: init at 0.3 (#385337) --- .../systemdunitparser/default.nix | 39 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 41 insertions(+) create mode 100644 pkgs/development/python-modules/systemdunitparser/default.nix diff --git a/pkgs/development/python-modules/systemdunitparser/default.nix b/pkgs/development/python-modules/systemdunitparser/default.nix new file mode 100644 index 000000000000..0b3431c06680 --- /dev/null +++ b/pkgs/development/python-modules/systemdunitparser/default.nix @@ -0,0 +1,39 @@ +{ + buildPythonPackage, + lib, + fetchFromGitHub, + setuptools, + wheel, + nix-update-script, +}: + +buildPythonPackage rec { + pname = "systemdunitparser"; + version = "0.3"; + pyproject = true; + + src = fetchFromGitHub { + owner = "sgallagher"; + repo = "systemdunitparser"; + rev = version; + hash = "sha256-lcvXEieaifPUDhLdaz2FXaNdbw7wKR+x/kC+MMDT0tE="; + }; + + build-system = [ + setuptools + wheel + ]; + + pythonImportsCheck = [ + "SystemdUnitParser" + ]; + + passthru.updateScript = nix-update-script { }; + + meta = { + description = "SystemdUnitParser is an extension to Python's configparser.RawConfigParser to properly parse systemd unit files"; + homepage = "https://github.com/sgallagher/systemdunitparser"; + license = lib.licenses.gpl3Only; + maintainers = with lib.maintainers; [ malik ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 3e35b43fbe0c..e1cfbe295703 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -16057,6 +16057,8 @@ self: super: with self; { inherit (pkgs) systemd; }; + systemdunitparser = callPackage ../development/python-modules/systemdunitparser { }; + sysv-ipc = callPackage ../development/python-modules/sysv-ipc { }; syrupy = callPackage ../development/python-modules/syrupy { };