librepo: 1.9.2 → 1.11.2

* Update
    Changes: https://github.com/rpm-software-management/librepo/compare/1.9.2...1.11.2
* Split into multiple outputs
* Default to Python 3 like upstream does
This commit is contained in:
Jan Tojnar 2020-02-08 03:07:04 +01:00 committed by worldofpeace
parent 0e651ce7fa
commit 3c65622fc5
3 changed files with 28 additions and 6 deletions

@ -6,20 +6,23 @@
, libxml2
, glib
, openssl
, zchunk
, curl
, check
, gpgme
}:
stdenv.mkDerivation rec {
version = "1.9.2";
version = "1.11.2";
pname = "librepo";
outputs = [ "out" "dev" "py" ];
src = fetchFromGitHub {
owner = "rpm-software-management";
repo = "librepo";
rev = version;
sha256 = "0xa9ng9mhpianhjy2a0jnj8ha1zckk2sz91y910daggm1qcv5asx";
sha256 = "0f04qky61dlh5h71xdmpngpy98cmlsfyp2pkyj5sbkplvrmh1wzw";
};
nativeBuildInputs = [
@ -32,6 +35,7 @@ stdenv.mkDerivation rec {
libxml2
glib
openssl
zchunk
curl
check
gpgme
@ -48,6 +52,10 @@ stdenv.mkDerivation rec {
"-DPYTHON_DESIRED=${stdenv.lib.substring 0 1 python.pythonVersion}"
];
postFixup = ''
moveToOutput "lib/${python.libPrefix}" "$py"
'';
meta = with stdenv.lib; {
description = "Library providing C and Python (libcURL like) API for downloading linux repository metadata and packages";
homepage = "https://rpm-software-management.github.io/librepo/";

@ -12667,7 +12667,9 @@ in
librelp = callPackage ../development/libraries/librelp { };
librepo = callPackage ../tools/package-management/librepo { };
librepo = callPackage ../tools/package-management/librepo {
python = python3;
};
libresample = callPackage ../development/libraries/libresample {};

@ -4006,9 +4006,21 @@ in {
libkeepass = callPackage ../development/python-modules/libkeepass { };
librepo = toPythonModule (pkgs.librepo.override {
inherit python;
});
librepo = pipe pkgs.librepo [
toPythonModule
(p: p.overrideAttrs (super: {
meta = super.meta // {
outputsToInstall = [ "py" ];
};
}))
(p: p.override {
inherit python;
})
(p: p.py)
];
libnacl = callPackage ../development/python-modules/libnacl {
inherit (pkgs) libsodium;