nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at 21.05 39 lines 926 B view raw
1{ lib, buildPythonPackage, fetchFromGitHub 2, click, enum-compat, pyscard, pycountry, terminaltables 3, pytestCheckHook, pythonOlder 4}: 5 6buildPythonPackage rec { 7 pname = "emv"; 8 version = "1.0.11"; 9 disabled = pythonOlder "3.4"; 10 11 src = fetchFromGitHub { 12 owner = "russss"; 13 repo = "python-emv"; 14 rev = "v${version}"; 15 hash = "sha256:1715hcba3fdi0i5awnrjdjnk74p66sxm9349pd8bb717zrh4gpj7"; 16 }; 17 18 checkInputs = [ pytestCheckHook ]; 19 propagatedBuildInputs = [ 20 enum-compat 21 click 22 pyscard 23 pycountry 24 terminaltables 25 ]; 26 27 # argparse is part of the standardlib 28 prePatch = '' 29 substituteInPlace setup.py \ 30 --replace '"argparse==1.4.0",' "" 31 ''; 32 33 meta = with lib; { 34 homepage = "https://github.com/russss/python-emv"; 35 description = "Implementation of the EMV chip-and-pin smartcard protocol"; 36 license = licenses.mit; 37 maintainers = with maintainers; [ lukegb ]; 38 }; 39}