2021-02-05 17:12:51 +00:00
|
|
|
{ buildPythonPackage, lib, lxml, click, fetchFromGitHub, pytest, isPy3k }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
version = "0.3.24";
|
|
|
|
pname = "pyaxmlparser";
|
|
|
|
|
|
|
|
# the PyPI tarball doesn't ship tests.
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "appknox";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "0fys26p7xhbnbdzp80zm6n3mragp38p08nyrsnilfgnlpi6rjpg0";
|
|
|
|
};
|
|
|
|
|
|
|
|
disabled = !isPy3k;
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace setup.py --replace "click==6.7" "click"
|
|
|
|
'';
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ lxml click ];
|
|
|
|
|
|
|
|
checkInputs = [ pytest ];
|
|
|
|
checkPhase = ''
|
|
|
|
py.test tests/
|
|
|
|
'';
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
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 ];
|
2021-01-05 17:05:55 +00:00
|
|
|
maintainers = with maintainers; [ SuperSandro2000 ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|