Files
nixpkgs/pkgs/development/python-modules/pyaxmlparser/default.nix
T

36 lines
922 B
Nix
Raw Normal View History

2018-12-23 22:56:58 +01:00
{ buildPythonPackage, stdenv, lxml, click, fetchFromGitHub, pytest, isPy3k }:
2018-03-11 00:09:11 +01:00
buildPythonPackage rec {
version = "0.3.13";
2018-03-11 00:09:11 +01:00
pname = "pyaxmlparser";
2018-12-23 22:56:58 +01:00
# the PyPI tarball doesn't ship tests.
src = fetchFromGitHub {
owner = "appknox";
repo = pname;
rev = "v${version}";
sha256 = "0jfjhxc6b57npsidknxmhj1x813scg47aaw90ybyr90fpdz5rlwk";
2018-03-11 00:09:11 +01:00
};
2018-12-23 22:56:58 +01:00
disabled = !isPy3k;
postPatch = ''
substituteInPlace setup.py --replace "click==6.7" "click"
'';
2018-03-11 00:09:11 +01:00
propagatedBuildInputs = [ lxml click ];
2018-12-23 22:56:58 +01:00
checkInputs = [ pytest ];
checkPhase = ''
py.test tests/
'';
2018-03-11 00:09:11 +01:00
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 ];
2018-03-11 00:09:11 +01:00
maintainers = with maintainers; [ ma27 ];
};
}