nixpkgs/pkgs/development/python-modules/sdkmanager/default.nix
Alexis Hildebrandt 755b915a15 treewide: Remove indefinite article from meta.description
nix run nixpkgs#silver-searcher -- -G '\.nix$' -0l 'description.*"[Aa]n?' pkgs \
  | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee 's/(description.*")[Aa]n? (.)/\1\U\2/'
2024-06-09 23:07:45 +02:00

50 lines
1.0 KiB
Nix

{
lib,
buildPythonPackage,
fetchFromGitLab,
pythonOlder,
pythonAtLeast,
argcomplete,
requests,
looseversion,
gnupg,
}:
buildPythonPackage rec {
pname = "sdkmanager";
version = "0.6.7";
format = "setuptools";
disabled = pythonOlder "3.5";
src = fetchFromGitLab {
owner = "fdroid";
repo = pname;
rev = version;
hash = "sha256-8Iq3sVp9/dZi4zNZIgNm38ntoA2koS/Ism+pIVATr4Q=";
};
propagatedBuildInputs = [
argcomplete
requests
] ++ requests.optional-dependencies.socks ++ lib.optionals (pythonAtLeast "3.12") [ looseversion ];
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 = "Drop-in replacement for sdkmanager from the Android SDK written in Python";
mainProgram = "sdkmanager";
license = licenses.agpl3Plus;
maintainers = with maintainers; [ linsui ];
};
}