summaryrefslogtreecommitdiffstats
path: root/pkgs/development/python-modules/adb-shell
diff options
context:
space:
mode:
authorFabian Affolter <mail@fabian-affolter.ch>2022-01-12 10:04:40 +0100
committerFabian Affolter <mail@fabian-affolter.ch>2022-01-12 10:04:40 +0100
commit90060e51d358ad1e59781602989605ebbb0fb3ae (patch)
tree7937481abc1b272592f47417c8a64e965020ad31 /pkgs/development/python-modules/adb-shell
parented89030b17286382363919367704ff1b29052de4 (diff)
python3Packages.adb-shell: disable failing tests
Diffstat (limited to 'pkgs/development/python-modules/adb-shell')
-rw-r--r--pkgs/development/python-modules/adb-shell/default.nix16
1 files changed, 13 insertions, 3 deletions
diff --git a/pkgs/development/python-modules/adb-shell/default.nix b/pkgs/development/python-modules/adb-shell/default.nix
index bc71e3721288..907cf155ea10 100644
--- a/pkgs/development/python-modules/adb-shell/default.nix
+++ b/pkgs/development/python-modules/adb-shell/default.nix
@@ -7,6 +7,7 @@
, libusb1
, mock
, pyasn1
+, pythonAtLeast
, pycryptodome
, pytestCheckHook
, rsa
@@ -15,15 +16,15 @@
buildPythonPackage rec {
pname = "adb-shell";
version = "0.4.2";
+ format = "setuptools";
disabled = !isPy3k;
- # pypi does not contain tests, using github sources instead
src = fetchFromGitHub {
owner = "JeffLIrion";
repo = "adb_shell";
rev = "v${version}";
- sha256 = "sha256-8tclSjmLlTAIeq6t7YPGtJwvSwtlzQ7sRAQatcQRzeY=";
+ hash = "sha256-8tclSjmLlTAIeq6t7YPGtJwvSwtlzQ7sRAQatcQRzeY=";
};
propagatedBuildInputs = [
@@ -40,7 +41,16 @@ buildPythonPackage rec {
pytestCheckHook
];
- pythonImportsCheck = [ "adb_shell" ];
+ disabledTests = lib.optionals (pythonAtLeast "3.10") [
+ # Tests are failing with Python 3.10
+ # https://github.com/JeffLIrion/adb_shell/issues/198
+ "TestAdbDeviceAsync"
+ "TestTcpTransportAsync"
+ ];
+
+ pythonImportsCheck = [
+ "adb_shell"
+ ];
meta = with lib; {
description = "Python implementation of ADB with shell and FileSync functionality";