46 lines
784 B
Nix
46 lines
784 B
Nix
{
|
|
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;
|
|
};
|
|
}
|