2016-02-19 12:12:11 +00:00
|
|
|
{ stdenv, python, buildPythonApplication, fetchurl, urlgrabber }:
|
2014-10-22 06:15:30 +00:00
|
|
|
|
2016-02-19 12:12:11 +00:00
|
|
|
buildPythonApplication rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "pykickstart";
|
2014-10-22 06:15:30 +00:00
|
|
|
version = "1.99.39";
|
2016-03-11 21:42:37 +00:00
|
|
|
md5_path = "d249f60aa89b1b4facd63f776925116d";
|
2014-10-22 06:15:30 +00:00
|
|
|
|
2019-08-13 21:52:01 +00:00
|
|
|
src = fetchurl {
|
2018-11-24 22:53:27 +00:00
|
|
|
url = "https://src.fedoraproject.org/repo/pkgs/pykickstart/"
|
2019-08-15 12:41:18 +00:00
|
|
|
+ "${pname}-${version}.tar.gz/${md5_path}/${pname}-${version}.tar.gz";
|
2016-03-11 21:42:37 +00:00
|
|
|
sha256 = "e0d0f98ac4c5607e6a48d5c1fba2d50cc804de1081043f9da68cbfc69cad957a";
|
2014-10-22 06:15:30 +00: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 01:11:51 +00:00
|
|
|
homepage = "http://fedoraproject.org/wiki/Pykickstart";
|
2014-10-22 06:15:30 +00:00
|
|
|
description = "Read and write Fedora kickstart files";
|
|
|
|
license = stdenv.lib.licenses.gpl2Plus;
|
|
|
|
};
|
|
|
|
}
|