Files
nixpkgs/pkgs/development/python-modules/pykcs11/default.nix
Martin Weinelt 29072b585e python3Packages.pykcs11: 1.5.17 -> 1.5.18
https://github.com/LudovicRousseau/PyKCS11/releases/tag/1.5.18

This commit was automatically generated using update-python-libraries.
2025-08-09 19:02:34 +02:00

53 lines
1.0 KiB
Nix

{
lib,
buildPythonPackage,
callPackage,
fetchPypi,
setuptools,
swig,
}:
buildPythonPackage rec {
pname = "pykcs11";
version = "1.5.18";
pyproject = true;
src = fetchPypi {
inherit pname version;
hash = "sha256-Ev2HizaYIdgMG+ihQMheig+xNY/Kq6ZspmhpITaS8ic=";
};
build-system = [ setuptools ];
nativeBuildInputs = [ swig ];
pypaBuildFlags = [ "--skip-dependency-check" ];
outputs = [
"out"
"testout"
];
postInstall = ''
mkdir $testout
cp -R test $testout/test
'';
pythonImportsCheck = [ "PyKCS11" ];
doCheck = false;
# tests complain about circular import, do testing with passthru.tests instead
passthru.tests = {
pytest = callPackage ./tests.nix { };
};
meta = with lib; {
description = "PKCS#11 wrapper for Python";
homepage = "https://github.com/LudovicRousseau/PyKCS11";
changelog = "https://github.com/LudovicRousseau/PyKCS11/releases/tag/${version}";
license = licenses.gpl2Plus;
maintainers = with maintainers; [ hulr ];
};
}