16 buildPythonPackage rec {
17 pname = "paranoid-crypto";
18 version = "unstable-20220819";
19 format = "setuptools";
21 disabled = pythonOlder "3.9";
23 src = fetchFromGitHub {
25 repo = "paranoid_crypto";
26 # https://github.com/google/paranoid_crypto/issues/11
27 rev = "8abccc1619748b93979d1c26234b90d26e88a12e";
28 hash = "sha256-4yF7WAFAGGhvWTV/y5dGVA/+9r1dqrXU/0/6Edgw3ow=";
36 propagatedBuildInputs = [
51 substituteInPlace requirements.txt \
52 --replace "protobuf==3.20.*" "protobuf"
57 "paranoid_crypto/lib/randomness_tests/"
60 pythonImportsCheck = [
65 description = "Library contains checks for well known weaknesses on cryptographic artifacts";
66 homepage = "https://github.com/google/paranoid_crypto";
67 license = with licenses; [ asl20 ];
68 maintainers = with maintainers; [ fab ];