1{
2 buildPythonPackage,
3 lib,
4 fetchFromGitHub,
5 setuptools,
6 wheel,
7 nix-update-script,
8}:
9
10buildPythonPackage rec {
11 pname = "systemdunitparser";
12 version = "0.4";
13 pyproject = true;
14
15 src = fetchFromGitHub {
16 owner = "sgallagher";
17 repo = "systemdunitparser";
18 tag = version;
19 hash = "sha256-BlOj1rvRfh0SQ7io2N8MsMvAtWvXk0V6hYzlOSrr7hU=";
20 };
21
22 build-system = [
23 setuptools
24 wheel
25 ];
26
27 pythonImportsCheck = [
28 "SystemdUnitParser"
29 ];
30
31 passthru.updateScript = nix-update-script { };
32
33 meta = {
34 description = "SystemdUnitParser is an extension to Python's configparser.RawConfigParser to properly parse systemd unit files";
35 homepage = "https://github.com/sgallagher/systemdunitparser";
36 license = lib.licenses.gpl3Only;
37 maintainers = with lib.maintainers; [ malik ];
38 };
39}