Files
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

39 lines
891 B
Nix

{
aiofiles,
buildPythonPackage,
fetchPypi,
lib,
pythonOlder,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "pure-python-adb";
version = "0.3.0.dev0";
format = "setuptools";
disabled = pythonOlder "3.6";
src = fetchPypi {
inherit pname version;
sha256 = "0kdr7w2fhgjpcf1k3l6an9im583iqkr6v8hb4q1zw30nh3bqkk0f";
};
optional-dependencies = {
async = [ aiofiles ];
};
doCheck = pythonOlder "3.10"; # all tests result in RuntimeError on 3.10
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 ];
};
}