mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-22 04:45:39 +00:00
python3Packages.viv-utils: 0.3.17 -> 0.7.5
This commit is contained in:
parent
dd825551bf
commit
f0a2ed7ca5
@ -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; {
|
||||
|
Loading…
Reference in New Issue
Block a user