Merge pull request #152578 from fabaff/bump-emv
python3Packages.emv: 1.0.13 -> 1.0.14
This commit is contained in:
commit
9b70ba63ea
@ -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 ];
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user