git.iko.soy/typeable/nixpkgs
on master help sign in
python3Packages.adb-shell: disable failing tests
commit90060e51d358ad1e59781602989605ebbb0fb3ae authorFabian Affolter <mail@fabian-affolter.ch> dateWed 12 Jan 2022, 10:04 (5 years ago) parented89030
1 file changed+13−3
pkgs/development/python-modules/adb-shell/default.nix+13−3
pkgs/development/python-modules/adb-shell/default.nix+13−3
@@ -7,6 +7,7 @@
77, libusb1
88, mock
99, pyasn1
10+, pythonAtLeast
1011, pycryptodome
1112, pytestCheckHook
1213, rsa
@@ -15,15 +16,15 @@
1516buildPythonPackage rec {
1617 pname = "adb-shell";
1718 version = "0.4.2";
19+ format = "setuptools";
1820
1921 disabled = !isPy3k;
2022
21− # pypi does not contain tests, using github sources instead
2223 src = fetchFromGitHub {
2324 owner = "JeffLIrion";
2425 repo = "adb_shell";
2526 rev = "v${version}";
26− sha256 = "sha256-8tclSjmLlTAIeq6t7YPGtJwvSwtlzQ7sRAQatcQRzeY=";
27+ hash = "sha256-8tclSjmLlTAIeq6t7YPGtJwvSwtlzQ7sRAQatcQRzeY=";
2728 };
2829
2930 propagatedBuildInputs = [
@@ -40,7 +41,16 @@ buildPythonPackage rec {
4041 pytestCheckHook
4142 ];
4243
43− pythonImportsCheck = [ "adb_shell" ];
44+ disabledTests = lib.optionals (pythonAtLeast "3.10") [
45+ # Tests are failing with Python 3.10
46+ # https://github.com/JeffLIrion/adb_shell/issues/198
47+ "TestAdbDeviceAsync"
48+ "TestTcpTransportAsync"
49+ ];
50+
51+ pythonImportsCheck = [
52+ "adb_shell"
53+ ];
4454
4555 meta = with lib; {
4656 description = "Python implementation of ADB with shell and FileSync functionality";