10 buildPythonPackage rec {
15 src = fetchFromGitHub {
19 sha256 = "0wd0xhv1y1zw7djzcnimj8irif3mg0shbhgz0jn5yi914is88h6n";
23 sed -i -e 's|mke2fs|${pkgs.e2fsprogs}/bin/mke2fs|' tests/baseclass.py
25 s|e\.path\.startswith("/tmp/temp-device-")|"temp-device-" in e.path|
26 ' tests/test__ped_ped.py
27 '' + lib.optionalString stdenv.isi686 ''
28 # remove some integers in this test case which overflow on 32bit systems
29 sed -i -r -e '/class *UnitGetSizeTestCase/,/^$/{/[0-9]{11}/d}' \
30 tests/test__ped_ped.py
34 ./fix-test-pythonpath.patch
38 PATH="${pkgs.parted}/sbin:$PATH"
41 nativeBuildInputs = [ pkgs.pkg-config ];
42 checkInputs = [ six ];
43 propagatedBuildInputs = [ pkgs.parted ];
46 patchShebangs Makefile
47 make test PYTHON=${python.executable}
51 homepage = "https://github.com/dcantrell/pyparted/";
52 description = "Python interface for libparted";
53 license = licenses.gpl2Plus;
54 platforms = platforms.linux;
55 maintainers = with maintainers; [ lsix ];