Merge pull request #152578 from fabaff/bump-emv

python3Packages.emv: 1.0.13 -> 1.0.14
This commit is contained in:
Fabian Affolter 2021-12-30 09:36:05 +01:00 committed by GitHub
commit 9b70ba63ea
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,31 +1,29 @@
{ lib, buildPythonPackage, fetchFromGitHub
, click, enum-compat, pyscard, pycountry, terminaltables
, pytestCheckHook, pythonOlder
{ lib
, buildPythonPackage
, fetchFromGitHub
, click
, pyscard
, pycountry
, terminaltables
, pytestCheckHook
, pythonOlder
}:
buildPythonPackage rec {
pname = "emv";
version = "1.0.13";
version = "1.0.14";
format = "setuptools";
disabled = pythonOlder "3.4";
src = fetchFromGitHub {
owner = "russss";
repo = "python-emv";
rev = "v${version}";
hash = "sha256-Jobw8OyKMaLfVsvMadrUrg5BijFo9G6kjgjhGIV8H1M=";
hash = "sha256-MnaeQZ0rA3i0CoUA6HgJQpwk5yo4rm9e+pc5XzRd1eg=";
};
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
pyscard
pycountry
@ -36,9 +34,21 @@ buildPythonPackage rec {
pytestCheckHook
];
postPatch = ''
substituteInPlace setup.py \
--replace '"enum-compat==0.0.3",' "" \
--replace '"argparse==1.4.0",' "" \
--replace "click==7.1.2" "click" \
--replace "pyscard==2.0.0" "pyscard"
'';
pythonImportsCheck = [
"emv"
];
meta = with lib; {
homepage = "https://github.com/russss/python-emv";
description = "Implementation of the EMV chip-and-pin smartcard protocol";
homepage = "https://github.com/russss/python-emv";
license = licenses.mit;
maintainers = with maintainers; [ lukegb ];
};