pythonPackages.cryptography-vectors: make internal to cryptography

This commit is contained in:
Sandro Jäckel
2022-03-27 16:08:55 +02:00
parent 5392d8d6d5
commit 8df7949791
7 changed files with 23 additions and 16 deletions
@@ -1,11 +1,11 @@
{ lib
, stdenv
, callPackage
, buildPythonPackage
, fetchPypi
, rustPlatform
, setuptools-rust
, openssl
, cryptography_vectors
, Security
, packaging
, six
@@ -20,6 +20,9 @@
, hypothesis
}:
let
cryptography-vectors = callPackage ./vectors.nix { };
in
buildPythonPackage rec {
pname = "cryptography";
version = "36.0.2"; # Also update the hash in vectors.nix
@@ -55,7 +58,7 @@ buildPythonPackage rec {
];
checkInputs = [
cryptography_vectors
cryptography-vectors
hypothesis
iso8601
pretend
@@ -1,12 +1,13 @@
{ buildPythonPackage, fetchPypi, lib, cryptography }:
buildPythonPackage rec {
pname = "cryptography_vectors";
# The test vectors must have the same version as the cryptography package:
pname = "cryptography-vectors";
# The test vectors must have the same version as the cryptography package
inherit (cryptography) version;
src = fetchPypi {
inherit pname version;
pname = "cryptography_vectors";
inherit version;
sha256 = "sha256-KnkkRJoDAl+vf4dUpvQgAAHKshBzSmzmrB9r2s06aOQ=";
};