Introduce a cysystemd package.
This commit is contained in:
76
nix/configuration/roles/amd_s2idle/cysystemd.nix
Normal file
76
nix/configuration/roles/amd_s2idle/cysystemd.nix
Normal file
@@ -0,0 +1,76 @@
|
||||
# unpackPhase
|
||||
# patchPhase
|
||||
# configurePhase
|
||||
# buildPhase
|
||||
# checkPhase
|
||||
# installPhase
|
||||
# fixupPhase
|
||||
# installCheckPhase
|
||||
# distPhase
|
||||
{
|
||||
stdenv,
|
||||
pkgs,
|
||||
sqlite,
|
||||
makeWrapper,
|
||||
lib,
|
||||
python3,
|
||||
systemd,
|
||||
# setuptools,
|
||||
# cython,
|
||||
pkg-config,
|
||||
# python3Packages,
|
||||
...
|
||||
}:
|
||||
let
|
||||
version = "1.6.3";
|
||||
in
|
||||
python3.pkgs.buildPythonPackage {
|
||||
pname = "cysystemd";
|
||||
version = version;
|
||||
pyproject = true;
|
||||
|
||||
# format = "pyproject";
|
||||
|
||||
build-system = [
|
||||
python3.pkgs.setuptools
|
||||
python3.pkgs.cython
|
||||
];
|
||||
buildInputs = [ systemd ];
|
||||
nativeBuildInputs = with python3.pkgs; [
|
||||
# setuptools
|
||||
# setuptools-git-versioning
|
||||
# setuptools-git
|
||||
# pyudev
|
||||
# pkgs.systemd
|
||||
pkg-config
|
||||
];
|
||||
propagatedBuildInputs = with python3.pkgs; [
|
||||
# pyudev
|
||||
# pandas
|
||||
# jinja2
|
||||
# tabulate
|
||||
# seaborn
|
||||
# cysystemd
|
||||
# jinja2
|
||||
# matplotlib
|
||||
# seaborn
|
||||
];
|
||||
src = pkgs.fetchgit {
|
||||
url = "https://github.com/mosquito/cysystemd.git";
|
||||
tag = version;
|
||||
sha256 = "sha256-xumrQgoKfFeKdRQUIYXXiXEcNd76i4wo/EIDm8BN7oU=";
|
||||
# leaveDotGit = true;
|
||||
};
|
||||
|
||||
# postPatch = ''
|
||||
# substituteInPlace pyproject.toml \
|
||||
# --replace-fail ', "setuptools-git-versioning>=2.0,<3"' ""
|
||||
# '';
|
||||
|
||||
meta = with lib; {
|
||||
description = " systemd wrapper on Cython";
|
||||
homepage = "https://github.com/mosquito/cysystemd";
|
||||
license = licenses.asl20;
|
||||
platforms = platforms.linux;
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user