2019-10-28 23:51:17 +00:00
|
|
|
{ stdenv, fetchurl, buildPythonPackage, isPy3k, pycurl, six, rpm, dateutil }:
|
2014-08-30 20:08:49 +01:00
|
|
|
|
2017-03-21 12:01:17 +00:00
|
|
|
buildPythonPackage rec {
|
2017-05-27 10:25:35 +01:00
|
|
|
pname = "koji";
|
2019-10-28 23:51:17 +00:00
|
|
|
version = "1.14.3";
|
2017-03-21 12:01:17 +00:00
|
|
|
format = "other";
|
2014-08-30 20:08:49 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2018-06-23 14:27:58 +01:00
|
|
|
url = "https://releases.pagure.org/koji/${pname}-${version}.tar.bz2";
|
2019-10-28 23:51:17 +00:00
|
|
|
sha256 = "0a3kn3qvspvx15imgzzzjsbvw6bqmbk29apbliqwifa9cj7pvb40";
|
2014-08-30 20:08:49 +01:00
|
|
|
};
|
|
|
|
|
2017-09-16 04:39:16 +01:00
|
|
|
propagatedBuildInputs = [ pycurl six rpm dateutil ];
|
2014-08-30 20:08:49 +01:00
|
|
|
|
2017-09-06 16:03:47 +01:00
|
|
|
# Judging from SyntaxError
|
2019-10-28 23:51:17 +00:00
|
|
|
disabled = isPy3k;
|
2017-09-06 16:03:47 +01:00
|
|
|
|
2019-10-27 13:03:25 +00:00
|
|
|
makeFlags = [ "DESTDIR=$(out)" ];
|
2014-08-30 20:08:49 +01:00
|
|
|
|
|
|
|
postInstall = ''
|
2016-12-01 15:36:38 +00:00
|
|
|
mv $out/usr/* $out/
|
2014-08-30 20:08:49 +01:00
|
|
|
cp -R $out/nix/store/*/* $out/
|
|
|
|
rm -rf $out/nix
|
|
|
|
'';
|
|
|
|
|
2016-08-02 16:34:11 +01:00
|
|
|
meta = {
|
2019-10-28 23:51:17 +00:00
|
|
|
description = "An RPM-based build system";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://pagure.io/koji";
|
2019-10-28 23:51:17 +00:00
|
|
|
license = stdenv.lib.licenses.lgpl21;
|
2019-02-17 13:00:33 +00:00
|
|
|
platforms = stdenv.lib.platforms.unix;
|
2016-08-02 16:34:11 +01:00
|
|
|
};
|
2014-08-30 20:08:49 +01:00
|
|
|
}
|