diff options
author | Martin Weinelt <mweinelt@users.noreply.github.com> | 2023-11-20 23:14:44 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-20 23:14:44 +0100 |
commit | c62aa4c77f8ff84a6d482b3ebc76cb76d631e3f7 (patch) | |
tree | 1ba76b9f4aa4f74a711fa8a9632bcc13b94967dc /pkgs | |
parent | 6a32f8ece076dda9ba161a2e652b56e4e26ab303 (diff) | |
parent | d5308456a65c1b4c14c33d6b2bdae5c6384285c3 (diff) |
Merge pull request #263877 from StarGate01/adafruit-nrfutil
pythonPackages.adafruit-nrfutil: fix tests for 0.5.3.post17
Diffstat (limited to 'pkgs')
-rw-r--r-- | pkgs/by-name/ad/adafruit-nrfutil/package.nix | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/pkgs/by-name/ad/adafruit-nrfutil/package.nix b/pkgs/by-name/ad/adafruit-nrfutil/package.nix index 64dc160ff1fbc..a521154aa253a 100644 --- a/pkgs/by-name/ad/adafruit-nrfutil/package.nix +++ b/pkgs/by-name/ad/adafruit-nrfutil/package.nix @@ -1,6 +1,7 @@ { lib , python3Packages , fetchFromGitHub +, fetchpatch }: python3Packages.buildPythonApplication rec { @@ -15,6 +16,16 @@ python3Packages.buildPythonApplication rec { hash = "sha256-mHHKOQE9AGBX8RAyaPOy+JS3fTs98+AFdq9qsVy7go4="; }; + patches = [ + # Pull a patch which fixes the tests, but is not yet released in a new version: + # https://github.com/adafruit/Adafruit_nRF52_nrfutil/pull/38 + (fetchpatch { + name = "fix-tests.patch"; + url = "https://github.com/adafruit/Adafruit_nRF52_nrfutil/commit/e5fbcc8ee5958041db38c04139ba686bf7d1b845.patch"; + sha256 = "sha256-0tbJldGtYcDdUzA3wZRv0lenXVn6dqV016U9nMpQ6/w="; + }) + ]; + nativeBuildInputs = with python3Packages; [ setuptools ]; @@ -28,6 +39,7 @@ python3Packages.buildPythonApplication rec { nativeCheckInputs = with python3Packages; [ behave nose + pytestCheckHook ]; preCheck = '' |