From f26e88df7a88c9584ccf2fc5d9ef7eac34ccc5ca Mon Sep 17 00:00:00 2001 From: worldofpeace Date: Sat, 6 Apr 2019 18:03:28 -0400 Subject: [PATCH] pythonPackages.pyscard: fix darwin tests --- pkgs/development/python-modules/pyscard/default.nix | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/pkgs/development/python-modules/pyscard/default.nix b/pkgs/development/python-modules/pyscard/default.nix index 7fdacc5d03ab..bab8e502b9c8 100644 --- a/pkgs/development/python-modules/pyscard/default.nix +++ b/pkgs/development/python-modules/pyscard/default.nix @@ -1,4 +1,4 @@ -{ stdenv, fetchPypi, buildPythonPackage, swig, pcsclite, PCSC }: +{ stdenv, fetchPypi, fetchpatch, buildPythonPackage, swig, pcsclite, PCSC }: buildPythonPackage rec { version = "1.9.8"; @@ -16,6 +16,15 @@ buildPythonPackage rec { NIX_CFLAGS_COMPILE = "-isystem ${stdenv.lib.getDev pcsclite}/include/PCSC/"; + patches = [ + # Fixes darwin tests + # See: https://github.com/LudovicRousseau/pyscard/issues/77 + (fetchpatch { + url = "https://github.com/LudovicRousseau/pyscard/commit/62e675028086c75656444cc21d563d9f08ebf8e7.patch"; + sha256 = "1lr55npcpc8j750vf7vaisqyk18d5f00l7nii2lvawg4sssjaaf7"; + }) + ]; + propagatedBuildInputs = [ pcsclite ]; buildInputs = stdenv.lib.optional stdenv.isDarwin PCSC; nativeBuildInputs = [ swig ];