10 buildPythonPackage rec {
16 inherit pname version;
17 hash = "sha256-e2Z+lZ+gtq0HULA+IIGgWcvppieJdmFD5Q+QmIoziZQ=";
20 build-system = [ setuptools ];
22 nativeBuildInputs = [ swig ];
24 pypaBuildFlags = [ "--skip-dependency-check" ];
33 cp -R test $testout/test
36 pythonImportsCheck = [ "PyKCS11" ];
40 # tests complain about circular import, do testing with passthru.tests instead
42 pytest = callPackage ./tests.nix { };
46 description = "PKCS#11 wrapper for Python";
47 homepage = "https://github.com/LudovicRousseau/PyKCS11";
48 changelog = "https://github.com/LudovicRousseau/PyKCS11/releases/tag/${version}";
49 license = licenses.gpl2Plus;
50 maintainers = with maintainers; [ hulr ];