diff options
author | natsukium <tomoya.otabi@gmail.com> | 2024-05-23 00:20:46 +0900 |
---|---|---|
committer | natsukium <tomoya.otabi@gmail.com> | 2024-05-23 01:04:55 +0900 |
commit | 27952b0347ec3858576e85b7d3294d33fcdfef22 (patch) | |
tree | dff1588a16e6f5223df3bac4770ea0854beaac9d | |
parent | 68cd833601f3f6bd960f83158773fa56162aac12 (diff) |
python311Packages.libvirt: refactor and remove nose
-rw-r--r-- | pkgs/development/python-modules/libvirt/default.nix | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/pkgs/development/python-modules/libvirt/default.nix b/pkgs/development/python-modules/libvirt/default.nix index e5ccec9371eeb..f424240f91ea1 100644 --- a/pkgs/development/python-modules/libvirt/default.nix +++ b/pkgs/development/python-modules/libvirt/default.nix @@ -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"; |