9bb3fccb5b
continuation of #109595 pkgconfig was aliased in 2018, however, it remained in all-packages.nix due to its wide usage. This cleans up the remaining references to pkgs.pkgsconfig and moves the entry to aliases.nix. python3Packages.pkgconfig remained unchanged because it's the canonical name of the upstream package on pypi.
29 lines
701 B
Nix
29 lines
701 B
Nix
{ lib, stdenv, buildPythonPackage, fetchFromGitLab, pkg-config, lxml, libvirt, nose }:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "libvirt";
|
|
version = "6.8.0";
|
|
|
|
src = assert version == libvirt.version; fetchFromGitLab {
|
|
owner = "libvirt";
|
|
repo = "libvirt-python";
|
|
rev = "v${version}";
|
|
sha256 = "sha256-A3eRfzQAfubyPefDlq5bAiFJ/G90D2JKdJO2Em0wE00=";
|
|
};
|
|
|
|
nativeBuildInputs = [ pkg-config ];
|
|
buildInputs = [ libvirt lxml ];
|
|
|
|
checkInputs = [ nose ];
|
|
checkPhase = ''
|
|
nosetests
|
|
'';
|
|
|
|
meta = with lib; {
|
|
homepage = "https://libvirt.org/python.html";
|
|
description = "libvirt Python bindings";
|
|
license = licenses.lgpl2;
|
|
maintainers = [ maintainers.fpletz ];
|
|
};
|
|
}
|