77 lines
1.4 KiB
Nix
77 lines
1.4 KiB
Nix
![]() |
# 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;
|
||
|
};
|
||
|
}
|