Merge pull request #29455 from disassembler/fedora

Fedora packaging tools update
This commit is contained in:
Frederik Rietdijk
2017-09-17 09:26:54 +02:00
committed by GitHub
10 changed files with 181 additions and 100 deletions

View File

@@ -0,0 +1,22 @@
{ stdenv, buildPythonPackage, fetchPypi, krb5Full, nose, GitPython, mock, git }:
buildPythonPackage rec {
pname = "CCColUtils";
version = "1.5";
name = "${pname}-${version}";
src = fetchPypi {
inherit pname version;
sha256 = "1gwcq4xan9as1j3q9k2zqrywxp46qx0ljwxbck9id2fvilds6ck3";
};
buildInputs = [ krb5Full ];
propagatedBuildInputs = [ nose GitPython mock git ];
doCheck = false;
meta = with stdenv.lib; {
description = "Python Kerberos 5 Credential Cache Collection Utilities";
homepage = https://pagure.io/cccolutils;
license = licenses.gpl2;
maintainers = with maintainers; [ disassembler ];
};
}

View File

@@ -0,0 +1,26 @@
{ stdenv, buildPythonPackage, isPy3k, fetchurl, rpkg, offtrac, urlgrabber }:
buildPythonPackage rec {
pname = "fedpkg";
version = "1.29";
name = "${pname}-${version}";
disabled = isPy3k;
src = fetchurl {
url = "https://releases.pagure.org/fedpkg/${name}.tar.bz2";
sha256 = "1cpy5p1rp7w52ighz3ynvhyw04z86y8phq3n8563lj6ayr8pw631";
};
#patches = [ ../development/python-modules/fedpkg-buildfix.diff ];
propagatedBuildInputs = [ rpkg offtrac urlgrabber ];
doCheck = false; # requires fedora_cert which isn't used anymore
meta = with stdenv.lib; {
description = "Subclass of the rpkg project for dealing with rpm packaging";
homepage = https://pagure.io/fedpkg;
license = licenses.gpl2;
maintainers = with maintainers; [ mornfall ];
};
}

View File

@@ -1,20 +1,20 @@
{ stdenv, fetchurl, buildPythonPackage, pycurl, isPy3k }:
{ stdenv, fetchurl, buildPythonPackage, pycurl, six, rpm, dateutil }:
buildPythonPackage rec {
pname = "koji";
version = "1.8";
version = "1.13.0";
name = "${pname}-${version}";
format = "other";
src = fetchurl {
url = "https://github.com/koji-project/koji/archive/koji-1.8.0.tar.gz";
sha256 = "17rkipdxccdccbbb70f9wx91cq9713psmq23j7lgb4mlnwan926h";
url = "https://releases.pagure.org/koji/${name}.tar.bz2";
sha256 = "18b18rcbdqqw33g7h20hf5bpbci2ixdi05yda1fvpv30c1kkzd8w";
};
propagatedBuildInputs = [ pycurl ];
propagatedBuildInputs = [ pycurl six rpm dateutil ];
# Judging from SyntaxError
disabled = isPy3k;
#disabled = isPy3k;
makeFlags = "DESTDIR=$(out)";

View File

@@ -0,0 +1,22 @@
{ stdenv, buildPythonPackage, fetchPypi, requests }:
buildPythonPackage rec {
pname = "openidc-client";
version = "0.2.0";
name = "${pname}-${version}";
src = fetchPypi {
inherit pname version;
sha256 = "1fca4bpnswyji5nivsrbak5vsfphl4njyfrb8rm2034nq6mzb8ah";
};
propagatedBuildInputs = [ requests ];
doCheck = false;
meta = with stdenv.lib; {
description = "A CLI python OpenID Connect client with token caching and management";
homepage = https://github.com/puiterwijk;
license = licenses.mit;
maintainers = with maintainers; [ disassembler ];
};
}

View File

@@ -0,0 +1,23 @@
{ stdenv, buildPythonPackage, fetchPypi, kitchen, requests, bunch, paver
, six, munch, urllib3, beautifulsoup4, openidc-client, lockfile }:
buildPythonPackage rec {
pname = "python-fedora";
version = "0.9.0";
name = "python-fedora-${version}";
src = fetchPypi {
inherit pname version;
sha256 = "0sf468scw52sw9pzxrnmqs54rix9c4fp1mi2r5k5n7mgjrmf6j0x";
};
propagatedBuildInputs = [ kitchen requests bunch paver lockfile
six munch urllib3 beautifulsoup4 openidc-client ];
doCheck = false;
meta = with stdenv.lib; {
description = "Python Fedora Module";
homepage = https://github.com/fedora-infra/python-fedora;
license = licenses.lgpl2;
maintainers = with maintainers; [ mornfall ];
};
}

View File

@@ -1,11 +0,0 @@
--- a/setup.py 2012-03-12 23:26:16.000000000 +0100
+++ b/setup.py 2014-02-04 14:52:02.335856975 +0100
@@ -14,6 +14,6 @@
package_dir = {'': 'src'},
packages = ['pyrpkg'],
scripts = ['src/rpkg'],
- data_files = [('/etc/bash_completion.d', ['src/rpkg.bash']),
- ('/etc/rpkg', ['src/rpkg.conf'])],
+ data_files = [('etc/bash_completion.d', ['src/rpkg.bash']),
+ ('etc/rpkg', ['src/rpkg.conf'])],
)

View File

@@ -0,0 +1,28 @@
{ stdenv, buildPythonPackage, isPy3k, fetchurl, six, pycurl, cccolutils
, koji, rpmfluff }:
buildPythonPackage rec {
pname = "rpkg";
version = "1.50";
name = "${pname}-${version}";
disabled = isPy3k;
src = fetchurl {
url = "https://releases.pagure.org/rpkg/${name}.tar.gz";
sha256 = "0j83bnm9snr3m1mabw2cvd2r7d6kcnkzyz7b9p65fhcc3c7s3rvv";
};
propagatedBuildInputs = [ pycurl koji cccolutils six rpmfluff ];
doCheck = false; # needs /var/lib/rpm database to run tests
meta = with stdenv.lib; {
description = "Python library for dealing with rpm packaging";
homepage = https://pagure.io/fedpkg;
license = licenses.gpl2plus;
maintainers = with maintainers; [ mornfall ];
};
}

View File

@@ -0,0 +1,20 @@
{ stdenv, buildPythonPackage, fetchurl }:
buildPythonPackage rec {
pname = "rpmfluff";
version = "0.5.3";
name = "${pname}-${version}";
src = fetchurl {
url = "https://releases.pagure.org/${pname}/${name}.tar.xz";
sha256 = "1i45f012ngpxs83m3dpmaj3hs8z7r9sbf05vnvzgs3hpgsbhxa7r";
};
meta = with stdenv.lib; {
description = "lightweight way of building RPMs, and sabotaging them";
homepage = https://pagure.io/rpmfluff;
license = licenses.gpl2;
maintainers = with maintainers; [ disassembler ];
};
}

View File

@@ -0,0 +1,24 @@
{ stdenv, buildPythonPackage, fetchPypi, pycurl, isPy3k }:
buildPythonPackage rec {
pname = "urlgrabber";
version = "3.10.2";
name = "${pname}-${version}";
disabled = isPy3k;
src = fetchPypi {
inherit pname version;
sha256 = "0w1h7hlsq406bxfy2pn4i9bd003bwl0q9b7p03z3g6yl0d21ddq5";
};
propagatedBuildInputs = [ pycurl ];
meta = with stdenv.lib; {
homepage = "urlgrabber.baseurl.org";
license = licenses.lgpl2Plus;
description = "Python module for downloading files";
maintainers = with maintainers; [ qknight ];
};
}