packages: Add vfio-isolate
This commit is contained in:
parent
b5137974f8
commit
005c096b42
33
packages/vfio-isolate/default.nix
Normal file
33
packages/vfio-isolate/default.nix
Normal file
@ -0,0 +1,33 @@
|
|||||||
|
{ pkgs, lib, python3Packages, python3, gtk3, gobject-introspection, git, wrapGAppsHook, gnome }:
|
||||||
|
|
||||||
|
python3Packages.buildPythonApplication rec {
|
||||||
|
pname = "vfio-isolate";
|
||||||
|
version = "0.3.1";
|
||||||
|
|
||||||
|
buildInputs = with python3.pkgs; [ parsimonious psutil click ];
|
||||||
|
propagatedBuildInputs = with python3.pkgs; [ parsimonious psutil click ];
|
||||||
|
|
||||||
|
patches = [ ./remove-versions.patch ];
|
||||||
|
|
||||||
|
src = builtins.fetchGit {
|
||||||
|
url = "https://github.com/spheenik/vfio-isolate.git";
|
||||||
|
ref = "master";
|
||||||
|
};
|
||||||
|
|
||||||
|
doCheck = false;
|
||||||
|
|
||||||
|
# Required as we otherwise don't get the dbus policy installed
|
||||||
|
# correctly
|
||||||
|
#preInstall = ''
|
||||||
|
# # see https://github.com/pypa/setuptools/issues/130
|
||||||
|
# ${python3}/bin/${python3.executable} setup.py install_data --install-dir=$out --root=$out
|
||||||
|
#'';
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
|
homepage = "https://github.com/spheenik/vfio-isolate";
|
||||||
|
description = "CPU and memory isolation for VFIO ";
|
||||||
|
license = licenses.mit;
|
||||||
|
maintainers = [ ];
|
||||||
|
platforms = lib.platforms.linux;
|
||||||
|
};
|
||||||
|
}
|
17
packages/vfio-isolate/remove-versions.patch
Normal file
17
packages/vfio-isolate/remove-versions.patch
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
diff --git a/setup.py b/setup.py
|
||||||
|
index db8db30..9f4b122 100755
|
||||||
|
--- a/setup.py
|
||||||
|
+++ b/setup.py
|
||||||
|
@@ -29,9 +29,9 @@ setup(
|
||||||
|
],
|
||||||
|
keywords='vfio cpu isolation',
|
||||||
|
install_requires=[
|
||||||
|
- 'click~=7.1.2',
|
||||||
|
- 'psutil~=5.7.0',
|
||||||
|
- 'parsimonious~=0.8.1',
|
||||||
|
+ 'click',
|
||||||
|
+ 'psutil',
|
||||||
|
+ 'parsimonious',
|
||||||
|
],
|
||||||
|
packages=find_packages(),
|
||||||
|
python_requires='>=3.6, <4',
|
Loading…
Reference in New Issue
Block a user