Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 232f4e0cb417
Choose a base ref
...
head repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 2ab19d9acaed
Choose a head ref
  • 2 commits
  • 2 files changed
  • 2 contributors

Commits on Nov 8, 2020

  1. Verified

    This commit was signed with the committer’s verified signature.
    bagder Daniel Stenberg
    Copy the full SHA
    7d86311 View commit details

Commits on Nov 24, 2020

  1. Merge pull request #102846 from lukegb/python-emv

    python3Packages.emv: init at 1.0.11
    SuperSandro2000 authored Nov 24, 2020

    Verified

    This commit was signed with the committer’s verified signature.
    bagder Daniel Stenberg
    Copy the full SHA
    2ab19d9 View commit details
Showing with 41 additions and 0 deletions.
  1. +39 −0 pkgs/development/python-modules/emv/default.nix
  2. +2 −0 pkgs/top-level/python-packages.nix
39 changes: 39 additions & 0 deletions pkgs/development/python-modules/emv/default.nix
Original file line number Diff line number Diff line change
@@ -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 ];
};
}
2 changes: 2 additions & 0 deletions pkgs/top-level/python-packages.nix
Original file line number Diff line number Diff line change
@@ -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 { };