From f0a2ed7ca502ed6635b770d3e163386f1590b0db Mon Sep 17 00:00:00 2001 From: Simon Bruder Date: Mon, 25 Jul 2022 10:35:53 +0200 Subject: [PATCH] python3Packages.viv-utils: 0.3.17 -> 0.7.5 --- .../python-modules/viv-utils/default.nix | 34 +++++++++---------- 1 file changed, 16 insertions(+), 18 deletions(-) diff --git a/pkgs/development/python-modules/viv-utils/default.nix b/pkgs/development/python-modules/viv-utils/default.nix index e94c96f72b0b..d4d2f408a5a0 100644 --- a/pkgs/development/python-modules/viv-utils/default.nix +++ b/pkgs/development/python-modules/viv-utils/default.nix @@ -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; {