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 {
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "pykickstart";
|
2014-10-22 08:15:30 +02:00
|
|
|
version = "1.99.39";
|
2016-03-11 22:42:37 +01:00
|
|
|
md5_path = "d249f60aa89b1b4facd63f776925116d";
|
2014-10-22 08:15:30 +02:00
|
|
|
|
2019-08-13 23:52:01 +02:00
|
|
|
src = fetchurl {
|
2018-11-24 23:53:27 +01:00
|
|
|
url = "https://src.fedoraproject.org/repo/pkgs/pykickstart/"
|
2019-08-15 14:41:18 +02:00
|
|
|
+ "${pname}-${version}.tar.gz/${md5_path}/${pname}-${version}.tar.gz";
|
2016-03-11 22:42:37 +01:00
|
|
|
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 = ''
|
|
|
|
${python}/bin/${python.executable} tests/baseclass.py -vv
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
2020-04-01 03:11:51 +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;
|
|
|
|
};
|
|
|
|
}
|