Files
nixpkgs/pkgs/development/python-modules/systemdunitparser/default.nix

40 lines
829 B
Nix

{
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 ];
};
}