14 buildPythonPackage rec {
19 disabled = pythonOlder "3.5";
21 src = fetchFromGitLab {
25 hash = "sha256-Ev90WS/T+Rb8h/21XHQdy/GePhGiYWwyfP88OUyBojQ=";
28 pythonRelaxDeps = [ "urllib3" ];
30 build-system = [ setuptools ];
37 ++ requests.optional-dependencies.socks
38 ++ lib.optionals (pythonAtLeast "3.12") [ looseversion ];
41 wrapProgram $out/bin/sdkmanager \
42 --suffix PATH : ${lib.makeBinPath [ gnupg ]}
48 pythonImportsCheck = [ "sdkmanager" ];
51 homepage = "https://gitlab.com/fdroid/sdkmanager";
52 description = "Drop-in replacement for sdkmanager from the Android SDK written in Python";
53 mainProgram = "sdkmanager";
54 license = licenses.agpl3Plus;
55 maintainers = with maintainers; [ linsui ];