nixpkgs/pkgs/development/python-modules/pure-python-adb/default.nix
Guillaume Girol 33afbf39f6 treewide: switch to nativeCheckInputs
checkInputs used to be added to nativeBuildInputs. Now we have
nativeCheckInputs to do that instead. Doing this treewide change allows
to keep hashes identical to before the introduction of
nativeCheckInputs.
2023-01-21 12:00:00 +00:00

46 lines
908 B
Nix

{ aiofiles
, buildPythonPackage
, fetchPypi
, lib
, pythonOlder
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "pure-python-adb";
version = "0.3.0.dev0";
disabled = pythonOlder "3.6";
src = fetchPypi {
inherit pname version;
sha256 = "0kdr7w2fhgjpcf1k3l6an9im583iqkr6v8hb4q1zw30nh3bqkk0f";
};
passthru.optional-dependencies = {
async = [
aiofiles
];
};
doCheck = pythonOlder "3.10"; # all tests result in RuntimeError on 3.10
nativeCheckInputs = [
pytestCheckHook
]
++ passthru.optional-dependencies.async;
pythonImportsCheck = [
"ppadb.client"
] ++ lib.optionals doCheck [
"ppadb.client_async"
];
meta = with lib; {
description = "Pure python implementation of the adb client";
homepage = "https://github.com/Swind/pure-python-adb";
license = licenses.mit;
maintainers = with maintainers; [ jamiemagee ];
};
}