Merge pull request #102846 from lukegb/python-emv

python3Packages.emv: init at 1.0.11
This commit is contained in:
Sandro 2020-11-25 00:41:05 +01:00 committed by GitHub
commit 2ab19d9aca
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 41 additions and 0 deletions

View File

@ -0,0 +1,39 @@
{ stdenv, buildPythonPackage, fetchFromGitHub
, 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",' ""
'';
meta = with stdenv.lib; {
homepage = "https://github.com/russss/python-emv";
description = "Implementation of the EMV chip-and-pin smartcard protocol";
license = licenses.mit;
maintainers = with maintainers; [ lukegb ];
};
}

View File

@ -1907,6 +1907,8 @@ in {
emcee = callPackage ../development/python-modules/emcee { };
emv = callPackage ../development/python-modules/emv { };
emoji = callPackage ../development/python-modules/emoji { };
enaml = callPackage ../development/python-modules/enaml { };