librepo: add bindings to python-packages.nix

This commit is contained in:
Frederik Rietdijk 2017-12-05 16:04:03 +01:00
parent 601c895bc1
commit 0b8417823d
2 changed files with 8 additions and 2 deletions

View file

@ -1,4 +1,4 @@
{ stdenv, fetchFromGitHub, cmake, python2, pkgconfig, expat, glib, pcre, openssl, curl, check, attr, gpgme }:
{ stdenv, fetchFromGitHub, cmake, python, pkgconfig, expat, glib, pcre, openssl, curl, check, attr, gpgme }:
stdenv.mkDerivation rec {
version = "1.8.1";
@ -13,7 +13,9 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ cmake pkgconfig ];
buildInputs = [ python2 expat glib pcre openssl curl check attr gpgme ];
cmakeFlags="-DPYTHON_DESIRED=${stdenv.lib.substring 0 1 python.pythonVersion}";
buildInputs = [ python expat glib pcre openssl curl check attr gpgme ];
# librepo/fastestmirror.h includes curl/curl.h, and pkg-config specfile refers to others in here
propagatedBuildInputs = [ curl gpgme expat ];

View file

@ -10404,6 +10404,10 @@ in {
cudaSupport = pkgs.config.cudaSupport or false;
};
librepo = toPythonModule (pkgs.librepo.override {
inherit python;
});
libnacl = callPackage ../development/python-modules/libnacl {
inherit (pkgs) libsodium;
};