2017-09-06 17:03:47 +02:00
|
|
|
{ stdenv, fetchurl, buildPythonPackage, pycurl, isPy3k }:
|
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";
|
|
|
|
version = "1.8";
|
|
|
|
name = "${pname}-${version}";
|
2017-03-21 13:01:17 +01:00
|
|
|
format = "other";
|
2014-08-30 21:08:49 +02:00
|
|
|
|
|
|
|
src = fetchurl {
|
2017-09-06 17:03:47 +02:00
|
|
|
url = "https://github.com/koji-project/koji/archive/koji-1.8.0.tar.gz";
|
|
|
|
sha256 = "17rkipdxccdccbbb70f9wx91cq9713psmq23j7lgb4mlnwan926h";
|
2014-08-30 21:08:49 +02:00
|
|
|
};
|
|
|
|
|
2016-12-01 16:36:38 +01:00
|
|
|
propagatedBuildInputs = [ pycurl ];
|
2014-08-30 21:08:49 +02:00
|
|
|
|
2017-09-06 17:03:47 +02:00
|
|
|
# Judging from SyntaxError
|
|
|
|
disabled = isPy3k;
|
|
|
|
|
2014-08-30 21:08:49 +02:00
|
|
|
makeFlags = "DESTDIR=$(out)";
|
|
|
|
|
|
|
|
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
|
|
|
|
'';
|
|
|
|
|
2016-08-02 17:34:11 +02:00
|
|
|
meta = {
|
|
|
|
maintainers = [ stdenv.lib.maintainers.mornfall ];
|
|
|
|
platforms = stdenv.lib.platforms.linux;
|
|
|
|
};
|
2014-08-30 21:08:49 +02:00
|
|
|
}
|