python3Packages.pyscard: 2.0.2 -> 2.0.7

This commit is contained in:
Martin Weinelt
2023-09-27 15:34:01 +02:00
parent 6ba0fd1f85
commit 005547808c
@@ -1,4 +1,11 @@
{ lib, stdenv, fetchpatch, fetchPypi, buildPythonPackage, swig, pcsclite, PCSC }:
{ lib
, stdenv
, fetchPypi
, buildPythonPackage
, swig
, pcsclite
, PCSC
}:
let
# Package does not support configuring the pcsc library.
@@ -6,23 +13,14 @@ let
in
buildPythonPackage rec {
version = "2.0.2";
version = "2.0.7";
pname = "pyscard";
src = fetchPypi {
inherit pname version;
sha256 = "05de0579c42b4eb433903aa2fb327d4821ebac262434b6584da18ed72053fd9e";
hash = "sha256-J4BUUl+nX76LEEYNh+3NA6cK2U1oixE0Xkc5mH+Fwb8=";
};
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" \