Add a package for cysystemd.
This package is a dependency of amd-debug-tools.
This commit is contained in:
parent
20075955de
commit
24c14af7f9
45
pkgs/development/python-modules/cysystemd/default.nix
Normal file
45
pkgs/development/python-modules/cysystemd/default.nix
Normal 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;
|
||||||
|
};
|
||||||
|
}
|
@ -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 =
|
||||||
|
Loading…
x
Reference in New Issue
Block a user