2021-01-25 08:26:54 +00:00
|
|
|
{ lib
|
2018-10-26 15:06:29 +01:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchurl
|
|
|
|
, urlgrabber
|
|
|
|
, python
|
2019-10-07 16:20:23 +01:00
|
|
|
, isPy3k
|
2018-10-26 15:06:29 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pykickstart";
|
|
|
|
version = "1.99.39";
|
|
|
|
md5_path = "d249f60aa89b1b4facd63f776925116d";
|
2019-10-07 16:20:23 +01:00
|
|
|
disabled = isPy3k;
|
2018-10-26 15:06:29 +01:00
|
|
|
|
2019-08-13 22:52:01 +01:00
|
|
|
src = fetchurl {
|
2018-11-24 22:53:27 +00:00
|
|
|
url = "https://src.fedoraproject.org/repo/pkgs/pykickstart/"
|
2018-10-26 15:06:29 +01:00
|
|
|
+ "${pname}-${version}.tar.gz/${md5_path}/${pname}-${version}.tar.gz";
|
|
|
|
sha256 = "e0d0f98ac4c5607e6a48d5c1fba2d50cc804de1081043f9da68cbfc69cad957a";
|
|
|
|
};
|
|
|
|
|
|
|
|
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.interpreter} tests/baseclass.py -vv
|
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2018-10-26 15:06:29 +01:00
|
|
|
homepage = "http://fedoraproject.org/wiki/Pykickstart";
|
|
|
|
description = "Read and write Fedora kickstart files";
|
|
|
|
license = licenses.gpl2Plus;
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|