mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-26 17:03:01 +00:00
python3Packages.adafruit-nrfutil: fix tests
This commit is contained in:
parent
eb0037836a
commit
d5308456a6
@ -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 = ''
|
||||
|
Loading…
Reference in New Issue
Block a user