diff options
Diffstat (limited to 'nixpkgs/pkgs/tools/filesystems/nixpart/0.4/pykickstart.nix')
-rw-r--r-- | nixpkgs/pkgs/tools/filesystems/nixpart/0.4/pykickstart.nix | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/tools/filesystems/nixpart/0.4/pykickstart.nix b/nixpkgs/pkgs/tools/filesystems/nixpart/0.4/pykickstart.nix new file mode 100644 index 000000000000..9d067359c44a --- /dev/null +++ b/nixpkgs/pkgs/tools/filesystems/nixpart/0.4/pykickstart.nix @@ -0,0 +1,30 @@ +{ stdenv, python, buildPythonApplication, fetchurl, urlgrabber }: + +buildPythonApplication rec { + pname = "pykickstart"; + version = "1.99.39"; + md5_path = "d249f60aa89b1b4facd63f776925116d"; + + src = fetchurl { + url = "https://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}/bin/${python.executable} tests/baseclass.py -vv + ''; + + meta = { + homepage = http://fedoraproject.org/wiki/Pykickstart; + description = "Read and write Fedora kickstart files"; + license = stdenv.lib.licenses.gpl2Plus; + }; +} |