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,10 +1,11 @@
{ lib, stdenv
{ lib
, stdenv
, callPackage
, buildPythonPackage
, fetchPypi
, isPy27
, ipaddress
, openssl
, cryptography_vectors
, darwin
, packaging
, six
@@ -18,6 +19,9 @@
, enum34
}:
let
cryptography-vectors = callPackage ./vectors.nix { };
in
buildPythonPackage rec {
pname = "cryptography";
version = "3.3.2"; # Also update the hash in vectors-3.3.nix
@@ -36,18 +40,19 @@ buildPythonPackage rec {
];
buildInputs = [ openssl ]
++ lib.optional stdenv.isDarwin darwin.apple_sdk.frameworks.Security;
++ lib.optional stdenv.isDarwin darwin.apple_sdk.frameworks.Security;
propagatedBuildInputs = [
packaging
six
] ++ lib.optionals (!isPyPy) [
cffi
] ++ lib.optionals isPy27 [
ipaddress enum34
ipaddress
enum34
];
checkInputs = [
cryptography_vectors
cryptography-vectors
hypothesis
iso8601
pretend
@@ -1,12 +1,13 @@
{ buildPythonPackage, fetchPypi, lib, cryptography }:
buildPythonPackage rec {
pname = "cryptography_vectors";
pname = "cryptography-vectors";
# The test vectors must have the same version as the cryptography package:
version = cryptography.version;
src = fetchPypi {
inherit pname version;
pname = "cryptography_vectors";
inherit version;
sha256 = "1yhaps0f3h2yjb6lmz953z1l1d84y9swk4k3gj9nqyk4vbx5m7cc";
};