python3Packages.emv: relax click and pyscard constraint

This commit is contained in:
Martin Weinelt 2021-06-20 21:53:14 +02:00
parent 34608858db
commit d0be56f8c6

View file

@ -15,7 +15,15 @@ buildPythonPackage rec {
hash = "sha256:1715hcba3fdi0i5awnrjdjnk74p66sxm9349pd8bb717zrh4gpj7";
};
checkInputs = [ pytestCheckHook ];
postPatch = ''
# argparse is part of the standard libary since python 2.7/3.2
sed -i '/argparse==1.4.0/d' setup.py
substituteInPlace setup.py \
--replace "click==7.1.2" "click" \
--replace "pyscard==2.0.0" "pyscard"
'';
propagatedBuildInputs = [
enum-compat
click
@ -24,11 +32,9 @@ buildPythonPackage rec {
terminaltables
];
# argparse is part of the standardlib
prePatch = ''
substituteInPlace setup.py \
--replace '"argparse==1.4.0",' ""
'';
checkInputs = [
pytestCheckHook
];
meta = with lib; {
homepage = "https://github.com/russss/python-emv";