2016-02-19 13:12:11 +01:00
|
|
|
{ stdenv, python, buildPythonApplication, fetchurl, urlgrabber }:
|
2014-10-22 08:15:30 +02:00
|
|
|
|
2016-02-19 13:12:11 +01:00
|
|
|
buildPythonApplication rec {
|
2014-10-22 08:15:30 +02:00
|
|
|
name = "pykickstart-${version}";
|
|
|
|
version = "1.99.39";
|
|
|
|
|
|
|
|
src = fetchurl rec {
|
|
|
|
url = "http://pkgs.fedoraproject.org/repo/pkgs/pykickstart/"
|
|
|
|
+ "${name}.tar.gz/${md5}/${name}.tar.gz";
|
|
|
|
md5 = "d249f60aa89b1b4facd63f776925116d";
|
|
|
|
};
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
sed -i -e "s/for tst in tstList/for tst in sorted(tstList, \
|
|
|
|
key=lambda m: m.__name__)/" tests/baseclass.py
|
|
|
|
'';
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ urlgrabber ];
|
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
export PYTHONPATH="$PYTHONPATH:."
|
|
|
|
${python}/bin/${python.executable} tests/baseclass.py -vv
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = "http://fedoraproject.org/wiki/Pykickstart";
|
|
|
|
description = "Read and write Fedora kickstart files";
|
|
|
|
license = stdenv.lib.licenses.gpl2Plus;
|
|
|
|
};
|
|
|
|
}
|