14 buildPythonPackage rec {
19 disabled = pythonOlder "3.7";
21 src = fetchFromGitHub {
24 rev = "refs/tags/v${version}";
25 hash = "sha256-MnaeQZ0rA3i0CoUA6HgJQpwk5yo4rm9e+pc5XzRd1eg=";
29 substituteInPlace setup.py \
30 --replace-fail '"enum-compat==0.0.3",' "" \
31 --replace-fail '"argparse==1.4.0",' "" \
32 --replace-fail "click==7.1.2" "click" \
33 --replace-fail "pyscard==2.0.0" "pyscard" \
34 --replace-fail "pycountry==20.7.3" "pycountry" \
35 --replace-fail "terminaltables==3.1.0" "terminaltables"
38 build-system = [ setuptools ];
47 nativeCheckInputs = [ pytestCheckHook ];
49 pythonImportsCheck = [ "emv" ];
52 description = "Implementation of the EMV chip-and-pin smartcard protocol";
53 homepage = "https://github.com/russss/python-emv";
54 changelog = "https://github.com/russss/python-emv/releases/tag/v${version}";
55 license = licenses.mit;
56 maintainers = with maintainers; [ lukegb ];
57 mainProgram = "emvtool";