packages: Add vfio-isolate

This commit is contained in:
PapaTutuWawa 2021-08-23 14:20:53 +02:00
parent b5137974f8
commit 005c096b42
2 changed files with 50 additions and 0 deletions

View 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;
};
}

View 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',