python3Packages.adb-shell: switch to pyproject

This commit is contained in:
Ryan Omasta
2026-05-25 14:42:08 -06:00
parent 09524d46c0
commit 2efc072e25

View File

@@ -4,6 +4,7 @@
aiofiles,
async-timeout,
buildPythonPackage,
setuptools,
cryptography,
fetchFromGitHub,
isPy3k,
@@ -15,21 +16,23 @@
rsa,
}:
buildPythonPackage rec {
buildPythonPackage (finalAttrs: {
pname = "adb-shell";
version = "0.4.4";
format = "setuptools";
pyproject = true;
disabled = !isPy3k;
src = fetchFromGitHub {
owner = "JeffLIrion";
repo = "adb_shell";
rev = "v${version}";
rev = "v${finalAttrs.version}";
hash = "sha256-pOkFUh3SEu/ch9R1lVoQn50nufQp8oI+D4/+Ybal5CA=";
};
propagatedBuildInputs = [
build-system = [ setuptools ];
dependencies = [
cryptography
pyasn1
rsa
@@ -50,7 +53,7 @@ buildPythonPackage rec {
pycryptodome
pytestCheckHook
]
++ lib.concatAttrValues optional-dependencies;
++ lib.concatAttrValues finalAttrs.optional-dependencies;
pythonImportsCheck = [ "adb_shell" ];
@@ -60,4 +63,4 @@ buildPythonPackage rec {
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ jamiemagee ];
};
}
})