depot/third_party/nixpkgs/pkgs/development/python-modules/sdkmanager/default.nix
Default email 9c6ee729d6 Project import generated by Copybara.
GitOrigin-RevId: 6cee3b5893090b0f5f0a06b4cf42ca4e60e5d222
2023-07-15 19:15:38 +02:00

45 lines
901 B
Nix

{ 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 ];
};
}