Merge pull request #52742 from Ma27/fix-pyaxmlparser
python3Packages.pyaxmlparser: fix build
This commit is contained in:
commit
75436c960c
@ -1,16 +1,30 @@
|
||||
{ buildPythonPackage, stdenv, lxml, click, fetchPypi }:
|
||||
{ buildPythonPackage, stdenv, lxml, click, fetchFromGitHub, pytest, isPy3k }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
version = "0.3.13";
|
||||
pname = "pyaxmlparser";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "1mzdrifnaky57vkmdvg0rgjss55xkxaramci3wpv4h65lmk95988";
|
||||
# the PyPI tarball doesn't ship tests.
|
||||
src = fetchFromGitHub {
|
||||
owner = "appknox";
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
sha256 = "0jfjhxc6b57npsidknxmhj1x813scg47aaw90ybyr90fpdz5rlwk";
|
||||
};
|
||||
|
||||
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;
|
||||
|
Loading…
Reference in New Issue
Block a user