esptool_3: compatibility with bitstring 4
This commit is contained in:
parent
621ec5b398
commit
f963d5e2d2
|
@ -1,4 +1,4 @@
|
|||
{ lib, fetchFromGitHub, python3, openssl }:
|
||||
{ lib, fetchFromGitHub, fetchpatch, python3, openssl }:
|
||||
|
||||
python3.pkgs.buildPythonApplication rec {
|
||||
pname = "esptool";
|
||||
|
@ -11,6 +11,16 @@ python3.pkgs.buildPythonApplication rec {
|
|||
hash = "sha256-hpPL9KNPA+S57SJoKnQewBCOybDbKep0t5RKw9a9GjM=";
|
||||
};
|
||||
|
||||
patches = [
|
||||
# https://github.com/espressif/esptool/pull/802
|
||||
(fetchpatch {
|
||||
name = "bitstring-4-compatibility.patch";
|
||||
url = "https://github.com/espressif/esptool/commit/16fa58415be2a7ff059ece40d4545288565d0a23.patch";
|
||||
hash = "sha256-FYa9EvyET4P8VkdyMzJBkdxVYm0tFt2GPnfsjzBnevE=";
|
||||
excludes = [ "setup.py" ];
|
||||
})
|
||||
];
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace test/test_imagegen.py \
|
||||
--replace "sys.executable, ESPTOOL_PY" "ESPTOOL_PY"
|
||||
|
|
Loading…
Reference in a new issue