1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 pycrypto, 6 python, 7}: 8 9buildPythonPackage rec { 10 pname = "android-backup"; 11 version = "0.2.0"; 12 format = "setuptools"; 13 14 src = fetchFromGitHub { 15 owner = "bluec0re"; 16 repo = "android-backup-tools"; 17 rev = "v${version}"; 18 sha256 = "0c436hv64ddqrjs77pa7z6spiv49pjflbmgg31p38haj5mzlrqvw"; 19 }; 20 21 propagatedBuildInputs = [ pycrypto ]; 22 23 checkPhase = '' 24 ${python.interpreter} -m android_backup.tests 25 ''; 26 27 pythonImportsCheck = [ "android_backup" ]; 28 29 meta = with lib; { 30 description = "Unpack and repack android backups"; 31 homepage = "https://github.com/bluec0re/android-backup-tools"; 32 license = licenses.asl20; 33 maintainers = with maintainers; [ dotlambda ]; 34 }; 35}