pythonPackages.pykickstart: refactor move to python-modules
This commit is contained in:
parent
96c277b340
commit
d7e98c8ab2
36
pkgs/development/python-modules/pykickstart/default.nix
Normal file
36
pkgs/development/python-modules/pykickstart/default.nix
Normal file
@ -0,0 +1,36 @@
|
|||||||
|
{ stdenv
|
||||||
|
, buildPythonPackage
|
||||||
|
, fetchurl
|
||||||
|
, urlgrabber
|
||||||
|
, python
|
||||||
|
}:
|
||||||
|
|
||||||
|
buildPythonPackage rec {
|
||||||
|
pname = "pykickstart";
|
||||||
|
version = "1.99.39";
|
||||||
|
md5_path = "d249f60aa89b1b4facd63f776925116d";
|
||||||
|
|
||||||
|
src = fetchurl rec {
|
||||||
|
url = "http://src.fedoraproject.org/repo/pkgs/pykickstart/"
|
||||||
|
+ "${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
|
||||||
|
'';
|
||||||
|
|
||||||
|
meta = with stdenv.lib; {
|
||||||
|
homepage = "http://fedoraproject.org/wiki/Pykickstart";
|
||||||
|
description = "Read and write Fedora kickstart files";
|
||||||
|
license = licenses.gpl2Plus;
|
||||||
|
};
|
||||||
|
|
||||||
|
}
|
@ -3374,34 +3374,7 @@ in {
|
|||||||
|
|
||||||
pyjwt = callPackage ../development/python-modules/pyjwt { };
|
pyjwt = callPackage ../development/python-modules/pyjwt { };
|
||||||
|
|
||||||
pykickstart = buildPythonPackage rec {
|
pykickstart = callPackage ../development/python-modules/pykickstart { };
|
||||||
name = "pykickstart-${version}";
|
|
||||||
version = "1.99.39";
|
|
||||||
md5_path = "d249f60aa89b1b4facd63f776925116d";
|
|
||||||
|
|
||||||
src = pkgs.fetchurl rec {
|
|
||||||
url = "http://src.fedoraproject.org/repo/pkgs/pykickstart/"
|
|
||||||
+ "${name}.tar.gz/${md5_path}/${name}.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 = with self; [ urlgrabber ];
|
|
||||||
|
|
||||||
checkPhase = ''
|
|
||||||
${python.interpreter} tests/baseclass.py -vv
|
|
||||||
'';
|
|
||||||
|
|
||||||
meta = {
|
|
||||||
homepage = "http://fedoraproject.org/wiki/Pykickstart";
|
|
||||||
description = "Read and write Fedora kickstart files";
|
|
||||||
license = licenses.gpl2Plus;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
pyobjc = if stdenv.isDarwin
|
pyobjc = if stdenv.isDarwin
|
||||||
then callPackage ../development/python-modules/pyobjc {}
|
then callPackage ../development/python-modules/pyobjc {}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user