2025-08-17 20:32:20 -04:00
|
|
|
{
|
|
|
|
lib,
|
2025-09-06 19:03:20 -04:00
|
|
|
pkgs,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
|
|
|
pythonOlder,
|
|
|
|
cython,
|
2025-08-17 20:32:20 -04:00
|
|
|
pkg-config,
|
2025-09-06 19:03:20 -04:00
|
|
|
setuptools,
|
2025-08-17 20:32:20 -04:00
|
|
|
}:
|
2025-09-06 19:03:20 -04:00
|
|
|
|
2025-08-17 20:32:20 -04:00
|
|
|
let
|
|
|
|
version = "1.6.3";
|
|
|
|
in
|
2025-09-06 19:03:20 -04:00
|
|
|
buildPythonPackage {
|
2025-08-17 20:32:20 -04:00
|
|
|
pname = "cysystemd";
|
2025-09-06 19:03:20 -04:00
|
|
|
inherit version;
|
2025-08-17 20:32:20 -04:00
|
|
|
pyproject = true;
|
|
|
|
|
2025-09-06 19:03:20 -04:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "mosquito";
|
|
|
|
repo = "cysystemd";
|
|
|
|
tag = version;
|
|
|
|
hash = "sha256-xumrQgoKfFeKdRQUIYXXiXEcNd76i4wo/EIDm8BN7oU=";
|
|
|
|
};
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.6";
|
2025-08-17 20:32:20 -04:00
|
|
|
|
|
|
|
build-system = [
|
2025-09-06 19:03:20 -04:00
|
|
|
setuptools
|
|
|
|
cython
|
2025-08-17 20:32:20 -04:00
|
|
|
];
|
2025-09-06 19:03:20 -04:00
|
|
|
|
|
|
|
nativeBuildInputs = [
|
2025-08-17 20:32:20 -04:00
|
|
|
pkg-config
|
|
|
|
];
|
|
|
|
|
2025-09-06 19:03:20 -04:00
|
|
|
buildInputs = [ pkgs.systemd ];
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "cysystemd" ];
|
2025-08-17 20:32:20 -04:00
|
|
|
|
2025-09-06 19:03:20 -04:00
|
|
|
meta = {
|
2025-08-21 20:30:23 -04:00
|
|
|
description = "systemd wrapper on Cython";
|
2025-08-17 20:32:20 -04:00
|
|
|
homepage = "https://github.com/mosquito/cysystemd";
|
2025-09-06 19:03:20 -04:00
|
|
|
license = lib.licenses.asl20;
|
|
|
|
platforms = lib.platforms.linux;
|
2025-08-17 20:32:20 -04:00
|
|
|
};
|
|
|
|
}
|