Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
2.4 kB · 106 lines
Nix
at gcc-offload
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107{ lib, stdenv, buildPythonPackage, callPackage, setuptools, bcrypt, certifi, cffi, cryptography-vectors ? (callPackage ./vectors.nix { }), fetchPypi, isPyPy, libiconv, libxcrypt, openssl, pkg-config, pretend, pytest-xdist, pytestCheckHook, pythonOlder, rustPlatform, Security,}:
buildPythonPackage rec { pname = "cryptography"; version = "43.0.1"; # Also update the hash in vectors.nix pyproject = true;
disabled = pythonOlder "3.7";
src = fetchPypi { inherit pname version; hash = "sha256-ID6Sp1cW2M+0kdxHx54X0NkgfM/8vLNfWY++RjrjRE0="; };
cargoDeps = rustPlatform.fetchCargoTarball { inherit src; sourceRoot = "${pname}-${version}/${cargoRoot}"; name = "${pname}-${version}"; hash = "sha256-wiAHM0ucR1X7GunZX8V0Jk2Hsi+dVdGgDKqcYjSdD7Q="; };
postPatch = '' substituteInPlace pyproject.toml \ --replace-fail "--benchmark-disable" "" '';
cargoRoot = "src/rust";
build-system = [ rustPlatform.cargoSetupHook rustPlatform.maturinBuildHook pkg-config setuptools ] ++ lib.optionals (!isPyPy) [ cffi ];
buildInputs = [ openssl ] ++ lib.optionals stdenv.hostPlatform.isDarwin [ Security libiconv ] ++ lib.optionals (pythonOlder "3.9") [ libxcrypt ];
dependencies = lib.optionals (!isPyPy) [ cffi ];
optional-dependencies.ssh = [ bcrypt ];
nativeCheckInputs = [ certifi cryptography-vectors pretend pytestCheckHook pytest-xdist ] ++ optional-dependencies.ssh;
pytestFlagsArray = [ "--disable-pytest-warnings" ];
disabledTestPaths = [ # save compute time by not running benchmarks "tests/bench" ];
passthru = { vectors = cryptography-vectors; };
meta = with lib; { description = "Package which provides cryptographic recipes and primitives"; longDescription = '' Cryptography includes both high level recipes and low level interfaces to common cryptographic algorithms such as symmetric ciphers, message digests, and key derivation functions. ''; homepage = "https://github.com/pyca/cryptography"; changelog = "https://cryptography.io/en/latest/changelog/#v" + replaceStrings [ "." ] [ "-" ] version; license = with licenses; [ asl20 bsd3 psfl ]; maintainers = with maintainers; [ SuperSandro2000 ]; };}