sdkmanager: init at 0.6.5

This commit is contained in:
linsui 2023-06-02 00:34:03 +08:00
parent 507f9c4d85
commit 998f085ff9
3 changed files with 49 additions and 0 deletions

View File

@ -0,0 +1,45 @@
{ lib
, buildPythonPackage
, fetchFromGitLab
, pythonOlder
, argcomplete
, requests
, gnupg
}:
buildPythonPackage rec {
pname = "sdkmanager";
version = "0.6.5";
format = "setuptools";
disabled = pythonOlder "3.5";
src = fetchFromGitLab {
owner = "fdroid";
repo = pname;
rev = version;
hash = "sha256-EQ24OjQZr42C1PFtIXr4yFzYb/M4Tatqu8Zo+9dgtEE=";
};
propagatedBuildInputs = [
argcomplete
requests
];
postInstall = ''
wrapProgram $out/bin/sdkmanager \
--suffix PATH : ${lib.makeBinPath [ gnupg ]}
'';
# has no tests
doCheck = false;
pythonImportsCheck = [ "sdkmanager" ];
meta = with lib; {
homepage = "https://gitlab.com/fdroid/sdkmanager";
description = "A drop-in replacement for sdkmanager from the Android SDK written in Python";
license = licenses.agpl3Plus;
maintainers = with maintainers; [ linsui ];
};
}

View File

@ -1699,6 +1699,8 @@ with pkgs;
sdlookup = callPackage ../tools/security/sdlookup { };
sdkmanager = with python3Packages; toPythonApplication sdkmanager;
sgrep = callPackage ../tools/text/sgrep { };
shell-genie = callPackage ../applications/misc/shell-genie { };

View File

@ -10900,6 +10900,8 @@ self: super: with self; {
sdds = callPackage ../development/python-modules/sdds { };
sdkmanager = callPackage ../development/python-modules/sdkmanager { };
sdnotify = callPackage ../development/python-modules/sdnotify { };
seaborn = callPackage ../development/python-modules/seaborn { };