nixpkgs/pkgs/development/python-modules/koji/default.nix

32 lines
689 B
Nix
Raw Normal View History

2017-09-06 17:03:47 +02:00
{ stdenv, fetchurl, buildPythonPackage, pycurl, isPy3k }:
buildPythonPackage rec {
pname = "koji";
version = "1.8";
name = "${pname}-${version}";
format = "other";
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";
};
propagatedBuildInputs = [ pycurl ];
2017-09-06 17:03:47 +02:00
# Judging from SyntaxError
disabled = isPy3k;
makeFlags = "DESTDIR=$(out)";
postInstall = ''
mv $out/usr/* $out/
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;
};
}