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";
|
2016-03-11 22:42:37 +01:00
|
|
|
md5_path = "d249f60aa89b1b4facd63f776925116d";
|
2014-10-22 08:15:30 +02:00
|
|
|
|
|
|
|
src = fetchurl rec {
|
2018-02-08 22:38:06 +01:00
|
|
|
url = "http://src.fedoraproject.org/repo/pkgs/pykickstart/"
|
2016-03-11 22:42:37 +01:00
|
|
|
+ "${name}.tar.gz/${md5_path}/${name}.tar.gz";
|
|
|
|
sha256 = "e0d0f98ac4c5607e6a48d5c1fba2d50cc804de1081043f9da68cbfc69cad957a";
|
2014-10-22 08:15:30 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
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 = {
|
2017-08-01 22:03:30 +02:00
|
|
|
homepage = http://fedoraproject.org/wiki/Pykickstart;
|
2014-10-22 08:15:30 +02:00
|
|
|
description = "Read and write Fedora kickstart files";
|
|
|
|
license = stdenv.lib.licenses.gpl2Plus;
|
|
|
|
};
|
|
|
|
}
|