summaryrefslogtreecommitdiffstats
path: root/pkgs/development/python-modules/android-backup/default.nix
blob: 71d601d0b77fdbb2337189cd7433c7676388f35d (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
{
  lib,
  buildPythonPackage,
  fetchFromGitHub,
  pycrypto,
  python,
  setuptools,
  pytestCheckHook,
}:

buildPythonPackage (finalAttrs: {
  pname = "android-backup";
  version = "0.2.0";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "bluec0re";
    repo = "android-backup-tools";
    tag = "v${finalAttrs.version}";
    hash = "sha256-fONMfy1SQTRuGO/VRZ28iex4tflH3XO0zLg1YjY0gzA=";
  };

  build-system = [ setuptools ];

  dependencies = [ pycrypto ];

  nativeCheckInputs = [ pytestCheckHook ];

  enabledTestPaths = [ "android_backup/tests/__main__.py" ];

  pythonImportsCheck = [ "android_backup" ];

  meta = {
    description = "Unpack and repack android backups";
    homepage = "https://github.com/bluec0re/android-backup-tools";
    license = lib.licenses.asl20;
    maintainers = with lib.maintainers; [ dotlambda ];
  };
})