mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-16 06:47:09 +03:00
python35Packages.pyparted: 3.10 -> 3.10.7
This commit is contained in:
parent
d8b6defaae
commit
539b39c34b
@ -11546,27 +11546,16 @@ let
|
||||
|
||||
pyparted = buildPythonPackage rec {
|
||||
name = "pyparted-${version}";
|
||||
version = "3.10";
|
||||
version = "3.10.7";
|
||||
disabled = isPyPy;
|
||||
|
||||
src = pkgs.fetchurl {
|
||||
url = "https://fedorahosted.org/releases/p/y/pyparted/${name}.tar.gz";
|
||||
sha256 = "17wq4invmv1nfazaksf59ymqyvgv3i8h4q03ry2az0s9lldyg3dv";
|
||||
url = "https://github.com/rhinstaller/pyparted/archive/v${version}.tar.gz";
|
||||
sha256 = "0c9ljrdggwawd8wdzqqqzrna9prrlpj6xs59b0vkxzip0jkf652r";
|
||||
};
|
||||
|
||||
patches = singleton (pkgs.fetchurl {
|
||||
url = "https://www.redhat.com/archives/pyparted-devel/"
|
||||
+ "2014-April/msg00000.html";
|
||||
postFetch = ''
|
||||
sed -i -ne '/<!--X-Body-of-Message-->/,/<!--X-Body-of-Message-End-->/ {
|
||||
s/^<[^>]*>//; /^$/!p
|
||||
}' "$downloadedFile"
|
||||
'';
|
||||
sha256 = "1lakhz3nvx0qacn90bj1nq13zqxphiw4d9dsc44gwa8nj24j2zws";
|
||||
});
|
||||
|
||||
postPatch = ''
|
||||
sed -i -e 's|/sbin/mke2fs|${pkgs.e2fsprogs}&|' tests/baseclass.py
|
||||
sed -i -e 's|mke2fs|${pkgs.e2fsprogs}/bin/mke2fs|' tests/baseclass.py
|
||||
sed -i -e '
|
||||
s|e\.path\.startswith("/tmp/temp-device-")|"temp-device-" in e.path|
|
||||
' tests/test__ped_ped.py
|
||||
|
Loading…
Reference in New Issue
Block a user