summaryrefslogtreecommitdiffstats
path: root/pkgs/development/python-modules/apksigtool/default.nix
blob: 7b8d2f82717dae7265c4641ff6b84cf534938fb8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
{
  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 ];
  };
})