python3Packages.viv-utils: 0.3.17 -> 0.7.5

This commit is contained in:
Simon Bruder 2022-07-25 10:35:53 +02:00
parent dd825551bf
commit f0a2ed7ca5
No known key found for this signature in database
GPG Key ID: 8D3C82F9F309F8EC

View File

@ -1,43 +1,41 @@
{ lib
, buildPythonPackage
, isPy3k
, fetchFromGitHub
, funcy
, pefile
, vivisect
, intervaltree
, setuptools
, pefile
, typing-extensions
, vivisect
, pytest-sugar
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "viv-utils";
version = "0.3.17";
disabled = isPy3k;
version = "0.7.5";
src = fetchFromGitHub {
owner = "williballenthin";
repo = "viv-utils";
rev = "v${version}";
sha256 = "wZWp6PMn1to/jP6lzlY/x0IhS/0w0Ys7AdklNQ+Vmyc=";
sha256 = "sha256-JDu+1n1wP2Vsp2V/bKdE+RFp6bE8RNmimi4wdsatwME=";
};
# argparse is provided by Python itself
preBuild = ''
sed '/"argparse",/d' -i setup.py
postPatch = ''
substituteInPlace setup.py \
--replace "==" ">="
'';
propagatedBuildInputs = [
funcy
pefile
vivisect
intervaltree
setuptools
pefile
typing-extensions
vivisect
];
# no tests
doCheck = false;
pythonImportsCheck = [
"viv_utils"
checkInputs = [
pytest-sugar
pytestCheckHook
];
meta = with lib; {