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