mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-10-10 22:30:59 +00:00
49 lines
1001 B
Nix
49 lines
1001 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
setuptools,
|
|
apksigcopier,
|
|
asn1crypto,
|
|
click,
|
|
cryptography,
|
|
simplejson,
|
|
}:
|
|
|
|
buildPythonPackage (finalAttrs: {
|
|
pname = "apksigtool";
|
|
version = "0.1.0";
|
|
pyproject = true;
|
|
__structuredAttrs = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "obfusk";
|
|
repo = "apksigtool";
|
|
tag = "v${finalAttrs.version}";
|
|
hash = "sha256-22dQLH9iMy+UqC90fGZ0STpU55+922SzQTR+dztl6R8=";
|
|
};
|
|
|
|
build-system = [ setuptools ];
|
|
|
|
dependencies = [
|
|
apksigcopier
|
|
asn1crypto
|
|
click
|
|
cryptography
|
|
simplejson
|
|
];
|
|
|
|
# upstream only ships shell based tests
|
|
doCheck = false;
|
|
|
|
pythonImportsCheck = [ "apksigtool" ];
|
|
|
|
meta = {
|
|
description = "Tool to parse/verify/clean/sign android apk";
|
|
homepage = "https://github.com/obfusk/apksigtool";
|
|
changelog = "https://github.com/obfusk/apksigtool/releases/tag/${finalAttrs.src.tag}";
|
|
license = lib.licenses.gpl3;
|
|
maintainers = with lib.maintainers; [ felbinger ];
|
|
};
|
|
})
|