2021-01-25 08:26:54 +00:00
|
|
|
{ lib, buildPythonPackage, fetchFromGitHub
|
2020-11-05 00:28:31 +00:00
|
|
|
, click, enum-compat, pyscard, pycountry, terminaltables
|
|
|
|
, pytestCheckHook, pythonOlder
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "emv";
|
|
|
|
version = "1.0.11";
|
|
|
|
disabled = pythonOlder "3.4";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "russss";
|
|
|
|
repo = "python-emv";
|
|
|
|
rev = "v${version}";
|
|
|
|
hash = "sha256:1715hcba3fdi0i5awnrjdjnk74p66sxm9349pd8bb717zrh4gpj7";
|
|
|
|
};
|
|
|
|
|
|
|
|
checkInputs = [ pytestCheckHook ];
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
enum-compat
|
|
|
|
click
|
|
|
|
pyscard
|
|
|
|
pycountry
|
|
|
|
terminaltables
|
|
|
|
];
|
|
|
|
|
|
|
|
# argparse is part of the standardlib
|
|
|
|
prePatch = ''
|
|
|
|
substituteInPlace setup.py \
|
|
|
|
--replace '"argparse==1.4.0",' ""
|
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-11-05 00:28:31 +00:00
|
|
|
homepage = "https://github.com/russss/python-emv";
|
|
|
|
description = "Implementation of the EMV chip-and-pin smartcard protocol";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ lukegb ];
|
|
|
|
};
|
|
|
|
}
|