Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at r-updates 44 lines 829 B view raw
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.8.1"; 14 pyproject = true; 15 16 src = fetchFromGitHub { 17 owner = "danni"; 18 repo = "python-pkcs11"; 19 tag = "v${version}"; 20 sha256 = "sha256-iCfcVVzAwwg69Ym1uVimSzYZBQmC+Yppl5YXDaLIcqc="; 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}