mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-12 16:53:21 +00:00
python312Packages.pygatt: revert to nose, disable tests on 3.12
This commit is contained in:
parent
14956c0eff
commit
a78d2e175c
@ -3,7 +3,7 @@
|
||||
buildPythonPackage,
|
||||
fetchFromGitHub,
|
||||
mock,
|
||||
pynose,
|
||||
nose,
|
||||
pexpect,
|
||||
pyserial,
|
||||
pytestCheckHook,
|
||||
@ -39,19 +39,16 @@ buildPythonPackage rec {
|
||||
|
||||
dependencies = [ pyserial ];
|
||||
|
||||
passthru.optional-dependencies.GATTTOOL = [ pexpect ];
|
||||
optional-dependencies.GATTTOOL = [ pexpect ];
|
||||
|
||||
nativeBuildInputs = [
|
||||
# For cross compilation the doCheck is false and therefor the
|
||||
# nativeCheckInputs not included. We have to include nose here, since
|
||||
# setup.py requires nose unconditionally.
|
||||
pynose
|
||||
];
|
||||
# tests require nose
|
||||
doCheck = pythonOlder "3.12";
|
||||
|
||||
nativeCheckInputs = [
|
||||
mock
|
||||
nose
|
||||
pytestCheckHook
|
||||
] ++ passthru.optional-dependencies.GATTTOOL;
|
||||
] ++ optional-dependencies.GATTTOOL;
|
||||
|
||||
pythonImportsCheck = [ "pygatt" ];
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user