summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/android-backup/default.nix
blob: 5c4d7cf4dc207a45d755df9254c9a47252ee9a88 (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
{
  lib,
  buildPythonPackage,
  fetchFromGitHub,
  pycrypto,
  python,
}:

buildPythonPackage rec {
  pname = "android-backup";
  version = "0.2.0";
  format = "setuptools";

  src = fetchFromGitHub {
    owner = "bluec0re";
    repo = "android-backup-tools";
    rev = "v${version}";
    sha256 = "0c436hv64ddqrjs77pa7z6spiv49pjflbmgg31p38haj5mzlrqvw";
  };

  propagatedBuildInputs = [ pycrypto ];

  checkPhase = ''
    ${python.interpreter} -m android_backup.tests
  '';

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