3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/python-modules/koji/default.nix

33 lines
771 B
Nix
Raw Normal View History

{ stdenv, fetchurl, buildPythonPackage, isPy3k, pycurl, six, rpm, dateutil }:
buildPythonPackage rec {
pname = "koji";
version = "1.14.3";
format = "other";
src = fetchurl {
url = "https://releases.pagure.org/koji/${pname}-${version}.tar.bz2";
sha256 = "0a3kn3qvspvx15imgzzzjsbvw6bqmbk29apbliqwifa9cj7pvb40";
};
2017-09-16 04:39:16 +01:00
propagatedBuildInputs = [ pycurl six rpm dateutil ];
2017-09-06 16:03:47 +01:00
# Judging from SyntaxError
disabled = isPy3k;
2017-09-06 16:03:47 +01:00
makeFlags = [ "DESTDIR=$(out)" ];
postInstall = ''
mv $out/usr/* $out/
cp -R $out/nix/store/*/* $out/
rm -rf $out/nix
'';
2016-08-02 16:34:11 +01:00
meta = {
description = "An RPM-based build system";
homepage = https://pagure.io/koji;
license = stdenv.lib.licenses.lgpl21;
platforms = stdenv.lib.platforms.unix;
2016-08-02 16:34:11 +01:00
};
}