mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-20 04:48:10 +00:00
f5fa5fa4d6
* pkgs: refactor needless quoting of homepage meta attribute A lot of packages are needlessly quoting the homepage meta attribute (about 1400, 22%), this commit refactors all of those instances. * pkgs: Fixing some links that were wrongfully unquoted in the previous commit * Fixed some instances
30 lines
802 B
Nix
30 lines
802 B
Nix
{ stdenv, fetchurl, buildPythonPackage, swig, pcsclite }:
|
|
|
|
buildPythonPackage rec {
|
|
version = "1.9.5";
|
|
pname = "pyscard";
|
|
name = "${pname}-${version}";
|
|
|
|
src = fetchurl {
|
|
url = "mirror://pypi/p/pyscard/${name}.tar.gz";
|
|
sha256 = "7eef027e1939b7595fc13c03616f262f90d118594fdb6f7620af46b54fa06835";
|
|
};
|
|
|
|
patchPhase = ''
|
|
sed -e 's!"libpcsclite\.so\.1"!"${pcsclite}/lib/libpcsclite.so.1"!' \
|
|
-i smartcard/scard/winscarddll.c
|
|
'';
|
|
|
|
NIX_CFLAGS_COMPILE = "-isystem ${pcsclite}/include/PCSC/";
|
|
|
|
propagatedBuildInputs = [ pcsclite ];
|
|
buildInputs = [ swig ];
|
|
|
|
meta = {
|
|
homepage = https://pyscard.sourceforge.io/;
|
|
description = "Smartcard library for python";
|
|
license = stdenv.lib.licenses.lgpl21;
|
|
maintainers = with stdenv.lib.maintainers; [ layus ];
|
|
};
|
|
}
|