summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/systemdunitparser/default.nix
blob: b3e008f0d74406a4de7d2c3e73cfd73907acd60f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
{
  buildPythonPackage,
  lib,
  fetchFromGitHub,
  setuptools,
  wheel,
  nix-update-script,
}:

buildPythonPackage rec {
  pname = "systemdunitparser";
  version = "0.4";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "sgallagher";
    repo = "systemdunitparser";
    tag = version;
    hash = "sha256-BlOj1rvRfh0SQ7io2N8MsMvAtWvXk0V6hYzlOSrr7hU=";
  };

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