1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-21 21:21:06 +00:00

python.pkgs.pkgconfig: move expression

This commit is contained in:
Robert Schütz 2018-04-26 16:36:35 +02:00 committed by Frederik Rietdijk
parent a7a48fddc3
commit 9f7ed5ed10
2 changed files with 27 additions and 24 deletions

View file

@ -0,0 +1,25 @@
{ lib, buildPythonPackage, fetchPypi, nose, pkgconfig }:
buildPythonPackage rec {
pname = "pkgconfig";
version = "1.3.1";
src = fetchPypi {
inherit pname version;
sha256 = "107x2wmchlch8saixb488cgjz9n6inl38wi7nxkb942rbaapxiqb";
};
checkInputs = [ nose ];
propagatedBuildInputs = [ pkgconfig ];
checkPhase = ''
nosetests
'';
meta = with lib; {
description = "Interface Python with pkg-config";
homepage = https://github.com/matze/pkgconfig;
license = licenses.mit;
};
}

View file

@ -9992,30 +9992,8 @@ in {
inherit (pkgs.xorg) libX11;
};
pkgconfig = buildPythonPackage rec {
name = "pkgconfig-${version}";
version = "1.3.1";
src = pkgs.fetchurl {
url = "mirror://pypi/p/pkgconfig/${name}.tar.gz";
sha256 = "107x2wmchlch8saixb488cgjz9n6inl38wi7nxkb942rbaapxiqb";
};
buildInputs = with self; [ nose ];
propagatedBuildInputs = with self; [pkgs.pkgconfig];
meta = {
description = "Interface Python with pkg-config";
homepage = https://github.com/matze/pkgconfig;
license = licenses.mit;
};
# nosetests needs to be run explicitly.
checkPhase = ''
nosetests
'';
pkgconfig = callPackage ../development/python-modules/pkgconfig {
inherit (pkgs) pkgconfig;
};
plumbum = callPackage ../development/python-modules/plumbum { };