Skip to content

Commit

Permalink
Merge pull request #313709 from natsukium/libvirt/refactor
Browse files Browse the repository at this point in the history
python311Packages.libvirt: refactor and remove nose
  • Loading branch information
NickCao committed May 23, 2024
2 parents 59334d0 + 27952b0 commit da9d72a
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions pkgs/development/python-modules/libvirt/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand All @@ -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";
Expand Down

0 comments on commit da9d72a

Please sign in to comment.