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
|
{ lib
|
||||||
, click, enum-compat, pyscard, pycountry, terminaltables
|
, buildPythonPackage
|
||||||
, pytestCheckHook, pythonOlder
|
, fetchFromGitHub
|
||||||
|
, click
|
||||||
|
, pyscard
|
||||||
|
, pycountry
|
||||||
|
, terminaltables
|
||||||
|
, pytestCheckHook
|
||||||
|
, pythonOlder
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "emv";
|
pname = "emv";
|
||||||
version = "1.0.13";
|
version = "1.0.14";
|
||||||
|
format = "setuptools";
|
||||||
|
|
||||||
disabled = pythonOlder "3.4";
|
disabled = pythonOlder "3.4";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "russss";
|
owner = "russss";
|
||||||
repo = "python-emv";
|
repo = "python-emv";
|
||||||
rev = "v${version}";
|
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 = [
|
propagatedBuildInputs = [
|
||||||
enum-compat
|
|
||||||
click
|
click
|
||||||
pyscard
|
pyscard
|
||||||
pycountry
|
pycountry
|
||||||
@ -36,9 +34,21 @@ buildPythonPackage rec {
|
|||||||
pytestCheckHook
|
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; {
|
meta = with lib; {
|
||||||
homepage = "https://github.com/russss/python-emv";
|
|
||||||
description = "Implementation of the EMV chip-and-pin smartcard protocol";
|
description = "Implementation of the EMV chip-and-pin smartcard protocol";
|
||||||
|
homepage = "https://github.com/russss/python-emv";
|
||||||
license = licenses.mit;
|
license = licenses.mit;
|
||||||
maintainers = with maintainers; [ lukegb ];
|
maintainers = with maintainers; [ lukegb ];
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user