diff options
author | Robert Scott <code@humanleg.org.uk> | 2021-11-17 00:06:52 +0000 |
---|---|---|
committer | Robert Scott <code@humanleg.org.uk> | 2021-11-17 19:40:11 +0000 |
commit | 3fa96c615f600b979f0f65387746e8fcd661b09f (patch) | |
tree | cf9d61ac4e281a5aca4fab53626a6efc6457bc7e /pkgs/development/python-modules/pyscard | |
parent | 087657bbf0a1335627aaa56c376cd149d8e97b11 (diff) |
python3Packages.pyscard: fix tests on darwin
Diffstat (limited to 'pkgs/development/python-modules/pyscard')
-rw-r--r-- | pkgs/development/python-modules/pyscard/default.nix | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/pkgs/development/python-modules/pyscard/default.nix b/pkgs/development/python-modules/pyscard/default.nix index caa5e4e244059..9efc461cec2b5 100644 --- a/pkgs/development/python-modules/pyscard/default.nix +++ b/pkgs/development/python-modules/pyscard/default.nix @@ -1,4 +1,4 @@ -{ lib, stdenv, fetchPypi, buildPythonPackage, swig, pcsclite, PCSC }: +{ lib, stdenv, fetchpatch, fetchPypi, buildPythonPackage, swig, pcsclite, PCSC }: let # Package does not support configuring the pcsc library. @@ -14,6 +14,15 @@ buildPythonPackage rec { sha256 = "05de0579c42b4eb433903aa2fb327d4821ebac262434b6584da18ed72053fd9e"; }; + patches = [ + # present in master - remove after 2.0.2 + (fetchpatch { + name = "darwin-typo-test-fix.patch"; + url = "https://github.com/LudovicRousseau/pyscard/commit/ce842fcc76fd61b8b6948d0b07306d82ad1ec12a.patch"; + sha256 = "0wsaj87wp9d2vnfzwncfxp2w95m0zhr7zpkmg5jccn06z52ihis3"; + }) + ]; + postPatch = if withApplePCSC then '' substituteInPlace smartcard/scard/winscarddll.c \ --replace "/System/Library/Frameworks/PCSC.framework/PCSC" \ |