Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / python-pkcs11 / default.nix
blob260b26730728dd939ca69e38722d3602c7932d42
1 { lib
2 , asn1crypto
3 , buildPythonPackage
4 , cached-property
5 , cython
6 , fetchFromGitHub
7 , setuptools-scm
8 }:
10 buildPythonPackage rec {
11   pname = "python-pkcs11";
12   version = "0.7.0";
13   format = "setuptools";
15   src = fetchFromGitHub {
16     owner = "danni";
17     repo = pname;
18     rev = "v${version}";
19     sha256 = "0kncbipfpsb7m7mhv5s5b9wk604h1j08i2j26fn90pklgqll0xhv";
20   };
22   nativeBuildInputs = [
23     cython
24     setuptools-scm
25   ];
27   propagatedBuildInputs = [
28     cached-property
29     asn1crypto
30   ];
32   # Test require additional setup
33   doCheck = false;
35   pythonImportsCheck = [ "pkcs11" ];
37   meta = with lib; {
38     description = "PKCS#11/Cryptoki support for Python";
39     homepage = "https://github.com/danni/python-pkcs11";
40     license = with licenses; [ mit ];
41     maintainers = with maintainers; [ fab ];
42   };