mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-03-09 18:47:02 +01:00
35 lines
822 B
Nix
35 lines
822 B
Nix
{
|
|
aiofiles,
|
|
buildPythonPackage,
|
|
fetchPypi,
|
|
lib,
|
|
pytestCheckHook,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pure-python-adb";
|
|
version = "0.3.0.dev0";
|
|
format = "setuptools";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "0kdr7w2fhgjpcf1k3l6an9im583iqkr6v8hb4q1zw30nh3bqkk0f";
|
|
};
|
|
|
|
optional-dependencies = {
|
|
async = [ aiofiles ];
|
|
};
|
|
|
|
doCheck = false; # all tests result in RuntimeError
|
|
|
|
nativeCheckInputs = [ pytestCheckHook ] ++ optional-dependencies.async;
|
|
|
|
pythonImportsCheck = [ "ppadb.client" ] ++ lib.optionals doCheck [ "ppadb.client_async" ];
|
|
|
|
meta = {
|
|
description = "Pure python implementation of the adb client";
|
|
homepage = "https://github.com/Swind/pure-python-adb";
|
|
license = lib.licenses.mit;
|
|
maintainers = with lib.maintainers; [ jamiemagee ];
|
|
};
|
|
}
|