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