nixpkgs/pkgs/development/python-modules/pyaxmlparser/default.nix
Maximilian Bosch 187d6fee39
python3Packages.pyaxmlparser: 0.3.13 -> 0.3.15
Minor bugfix releases with several improvements and more checks for APK
files to parse.

https://github.com/appknox/pyaxmlparser/compare/v0.3.13...v0.3.15
2019-05-11 15:03:41 +02:00

36 lines
922 B
Nix

{ buildPythonPackage, stdenv, lxml, click, fetchFromGitHub, pytest, isPy3k }:
buildPythonPackage rec {
version = "0.3.15";
pname = "pyaxmlparser";
# the PyPI tarball doesn't ship tests.
src = fetchFromGitHub {
owner = "appknox";
repo = pname;
rev = "v${version}";
sha256 = "0p4x21rg8h7alrg2zk6rbgc3fj77fiyky4zzvziz2bp5jpx1pvzp";
};
disabled = !isPy3k;
postPatch = ''
substituteInPlace setup.py --replace "click==6.7" "click"
'';
propagatedBuildInputs = [ lxml click ];
checkInputs = [ pytest ];
checkPhase = ''
py.test tests/
'';
meta = with stdenv.lib; {
description = "Python3 Parser for Android XML file and get Application Name without using Androguard";
homepage = https://github.com/appknox/pyaxmlparser;
# Files from Androguard are licensed ASL 2.0
license = with licenses; [ mit asl20 ];
maintainers = with maintainers; [ ma27 ];
};
}