mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-09-22 05:19:00 +02:00
python3Packages.pure-python-adb: split off async requirements
This commit is contained in:
parent
83f634c4e4
commit
139ba48b97
|
@ -1,4 +1,10 @@
|
|||
{ aiofiles, buildPythonPackage, fetchPypi, lib, pythonOlder }:
|
||||
{ aiofiles
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, lib
|
||||
, pythonOlder
|
||||
, pytestCheckHook
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "pure-python-adb";
|
||||
|
@ -11,11 +17,21 @@ buildPythonPackage rec {
|
|||
sha256 = "0kdr7w2fhgjpcf1k3l6an9im583iqkr6v8hb4q1zw30nh3bqkk0f";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ aiofiles ];
|
||||
# Disable tests as they require docker, docker-compose and a dedicated
|
||||
# android emulator
|
||||
doCheck = false;
|
||||
pythonImportsCheck = [ "ppadb.client" "ppadb.client_async" ];
|
||||
passthru.extras-require = {
|
||||
async = [
|
||||
aiofiles
|
||||
];
|
||||
};
|
||||
|
||||
checkInputs = [
|
||||
pytestCheckHook
|
||||
]
|
||||
++ passthru.extras-require.async;
|
||||
|
||||
pythonImportsCheck = [
|
||||
"ppadb.client"
|
||||
"ppadb.client_async"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Pure python implementation of the adb client";
|
||||
|
|
Loading…
Reference in a new issue