Add a package for cysystemd.

This package is a dependency of amd-debug-tools.
This commit is contained in:
Tom Alexander 2025-08-22 18:28:39 -04:00
parent 20075955de
commit 24c14af7f9
No known key found for this signature in database
GPG Key ID: D3A179C9A53C0EDE
2 changed files with 47 additions and 0 deletions

View File

@ -0,0 +1,45 @@
{
lib,
buildPythonPackage,
fetchgit,
pythonOlder,
cython,
pkg-config,
setuptools,
systemd,
}:
let
version = "1.6.3";
in
buildPythonPackage {
pname = "cysystemd";
version = version;
format = "pyproject";
src = fetchgit {
url = "https://github.com/mosquito/cysystemd.git";
tag = version;
sha256 = "sha256-xumrQgoKfFeKdRQUIYXXiXEcNd76i4wo/EIDm8BN7oU=";
};
disabled = pythonOlder "3.8";
build-system = [
setuptools
cython
];
nativeBuildInputs = [ pkg-config ];
buildInputs = [ systemd ];
pythonImportsCheck = [ "cysystemd" ];
meta = with lib; {
description = "systemd wrapper on Cython";
homepage = "https://github.com/mosquito/cysystemd";
license = licenses.asl20;
platforms = platforms.linux;
};
}

View File

@ -3234,6 +3234,8 @@ self: super: with self; {
cysignals = callPackage ../development/python-modules/cysignals { }; cysignals = callPackage ../development/python-modules/cysignals { };
cysystemd = callPackage ../development/python-modules/cysystemd { };
cython = callPackage ../development/python-modules/cython { }; cython = callPackage ../development/python-modules/cython { };
cython-test-exception-raiser = cython-test-exception-raiser =