1{ 2 lib, 3 asn1crypto, 4 buildPythonPackage, 5 cython, 6 fetchFromGitHub, 7 setuptools-scm, 8}: 9 10buildPythonPackage rec { 11 pname = "python-pkcs11"; 12 version = "0.9.0"; 13 pyproject = true; 14 15 src = fetchFromGitHub { 16 owner = "danni"; 17 repo = "python-pkcs11"; 18 tag = "v${version}"; 19 sha256 = "sha256-8KLc/jNpYAsuRaiRVD9m5rQWW6u1EG1yf9fwwXRk4Qc="; 20 }; 21 22 build-system = [ 23 cython 24 setuptools-scm 25 ]; 26 27 dependencies = [ 28 asn1crypto 29 ]; 30 31 # Test require additional setup 32 doCheck = false; 33 34 pythonImportsCheck = [ "pkcs11" ]; 35 36 meta = { 37 changelog = "https://github.com/pyauth/python-pkcs11/releases/tag/${src.tag}"; 38 description = "PKCS#11/Cryptoki support for Python"; 39 homepage = "https://github.com/danni/python-pkcs11"; 40 license = lib.licenses.mit; 41 maintainers = with lib.maintainers; [ fab ]; 42 }; 43}