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 ];
35 ] ++ requests.optional-dependencies.socks ++ lib.optionals (pythonAtLeast "3.12") [ looseversion ];
38 wrapProgram $out/bin/sdkmanager \
39 --suffix PATH : ${lib.makeBinPath [ gnupg ]}
45 pythonImportsCheck = [ "sdkmanager" ];
48 homepage = "https://gitlab.com/fdroid/sdkmanager";
49 description = "Drop-in replacement for sdkmanager from the Android SDK written in Python";
50 mainProgram = "sdkmanager";
51 license = licenses.agpl3Plus;
52 maintainers = with maintainers; [ linsui ];