Diff: https://github.com/danni/python-pkcs11/compare/v0.8.1...v0.9.0 Changelog: https://github.com/pyauth/python-pkcs11/releases/tag/v0.9.0
44 lines
847 B
Nix
44 lines
847 B
Nix
{
|
|
lib,
|
|
asn1crypto,
|
|
buildPythonPackage,
|
|
cython,
|
|
fetchFromGitHub,
|
|
setuptools-scm,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "python-pkcs11";
|
|
version = "0.9.0";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "danni";
|
|
repo = "python-pkcs11";
|
|
tag = "v${version}";
|
|
sha256 = "sha256-8KLc/jNpYAsuRaiRVD9m5rQWW6u1EG1yf9fwwXRk4Qc=";
|
|
};
|
|
|
|
build-system = [
|
|
cython
|
|
setuptools-scm
|
|
];
|
|
|
|
dependencies = [
|
|
asn1crypto
|
|
];
|
|
|
|
# Test require additional setup
|
|
doCheck = false;
|
|
|
|
pythonImportsCheck = [ "pkcs11" ];
|
|
|
|
meta = {
|
|
changelog = "https://github.com/pyauth/python-pkcs11/releases/tag/${src.tag}";
|
|
description = "PKCS#11/Cryptoki support for Python";
|
|
homepage = "https://github.com/danni/python-pkcs11";
|
|
license = lib.licenses.mit;
|
|
maintainers = with lib.maintainers; [ fab ];
|
|
};
|
|
}
|