Merge pull request #313709 from natsukium/libvirt/refactor

python311Packages.libvirt: refactor and remove nose
This commit is contained in:
Nick Cao 2024-05-22 20:59:35 -04:00 committed by GitHub
commit da9d72a210
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -2,16 +2,17 @@
lib,
buildPythonPackage,
fetchFromGitLab,
setuptools,
pkg-config,
lxml,
libvirt,
nose,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "libvirt";
version = "10.0.0";
format = "setuptools";
pyproject = true;
src = fetchFromGitLab {
owner = "libvirt";
@ -20,16 +21,17 @@ buildPythonPackage rec {
hash = "sha256-zl1Hfm7flRflNjIpLoLAlPDysYlieC05HEd/mzFW8pU=";
};
build-system = [ setuptools ];
nativeBuildInputs = [ pkg-config ];
buildInputs = [
libvirt
lxml
];
nativeCheckInputs = [ nose ];
checkPhase = ''
nosetests
'';
pythonImportsCheck = [ "libvirt" ];
nativeCheckInputs = [ pytestCheckHook ];
meta = with lib; {
homepage = "https://libvirt.org/python.html";