python3Packages: format with nixfmt
This commit is contained in:
@@ -1,26 +1,27 @@
|
||||
{ lib
|
||||
, stdenv
|
||||
, buildPythonPackage
|
||||
, callPackage
|
||||
, cargo
|
||||
, certifi
|
||||
, cffi
|
||||
, cryptography-vectors ? (callPackage ./vectors.nix { })
|
||||
, fetchPypi
|
||||
, fetchpatch2
|
||||
, isPyPy
|
||||
, libiconv
|
||||
, libxcrypt
|
||||
, openssl
|
||||
, pkg-config
|
||||
, pretend
|
||||
, pytest-xdist
|
||||
, pytestCheckHook
|
||||
, pythonOlder
|
||||
, rustc
|
||||
, rustPlatform
|
||||
, Security
|
||||
, setuptoolsRustBuildHook
|
||||
{
|
||||
lib,
|
||||
stdenv,
|
||||
buildPythonPackage,
|
||||
callPackage,
|
||||
cargo,
|
||||
certifi,
|
||||
cffi,
|
||||
cryptography-vectors ? (callPackage ./vectors.nix { }),
|
||||
fetchPypi,
|
||||
fetchpatch2,
|
||||
isPyPy,
|
||||
libiconv,
|
||||
libxcrypt,
|
||||
openssl,
|
||||
pkg-config,
|
||||
pretend,
|
||||
pytest-xdist,
|
||||
pytestCheckHook,
|
||||
pythonOlder,
|
||||
rustc,
|
||||
rustPlatform,
|
||||
Security,
|
||||
setuptoolsRustBuildHook,
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
@@ -63,22 +64,17 @@ buildPythonPackage rec {
|
||||
cargo
|
||||
rustc
|
||||
pkg-config
|
||||
] ++ lib.optionals (!isPyPy) [
|
||||
cffi
|
||||
];
|
||||
] ++ lib.optionals (!isPyPy) [ cffi ];
|
||||
|
||||
buildInputs = [
|
||||
openssl
|
||||
] ++ lib.optionals stdenv.isDarwin [
|
||||
Security
|
||||
libiconv
|
||||
] ++ lib.optionals (pythonOlder "3.9") [
|
||||
libxcrypt
|
||||
];
|
||||
buildInputs =
|
||||
[ openssl ]
|
||||
++ lib.optionals stdenv.isDarwin [
|
||||
Security
|
||||
libiconv
|
||||
]
|
||||
++ lib.optionals (pythonOlder "3.9") [ libxcrypt ];
|
||||
|
||||
propagatedBuildInputs = lib.optionals (!isPyPy) [
|
||||
cffi
|
||||
];
|
||||
propagatedBuildInputs = lib.optionals (!isPyPy) [ cffi ];
|
||||
|
||||
nativeCheckInputs = [
|
||||
certifi
|
||||
@@ -88,9 +84,7 @@ buildPythonPackage rec {
|
||||
pytest-xdist
|
||||
];
|
||||
|
||||
pytestFlagsArray = [
|
||||
"--disable-pytest-warnings"
|
||||
];
|
||||
pytestFlagsArray = [ "--disable-pytest-warnings" ];
|
||||
|
||||
disabledTestPaths = [
|
||||
# save compute time by not running benchmarks
|
||||
@@ -105,9 +99,13 @@ buildPythonPackage rec {
|
||||
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 ];
|
||||
changelog =
|
||||
"https://cryptography.io/en/latest/changelog/#v" + replaceStrings [ "." ] [ "-" ] version;
|
||||
license = with licenses; [
|
||||
asl20
|
||||
bsd3
|
||||
psfl
|
||||
];
|
||||
maintainers = with maintainers; [ SuperSandro2000 ];
|
||||
};
|
||||
}
|
||||
|
||||
@@ -1,8 +1,9 @@
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, cryptography
|
||||
, flit-core
|
||||
{
|
||||
lib,
|
||||
buildPythonPackage,
|
||||
fetchPypi,
|
||||
cryptography,
|
||||
flit-core,
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
@@ -17,22 +18,21 @@ buildPythonPackage rec {
|
||||
hash = "sha256-UFzV47DLMtoVJvBwQrf8OKS2w1ZxDLc9K192sDejjtE=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
flit-core
|
||||
];
|
||||
nativeBuildInputs = [ flit-core ];
|
||||
|
||||
# No tests included
|
||||
doCheck = false;
|
||||
|
||||
pythonImportsCheck = [
|
||||
"cryptography_vectors"
|
||||
];
|
||||
pythonImportsCheck = [ "cryptography_vectors" ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Test vectors for the cryptography package";
|
||||
homepage = "https://cryptography.io/en/latest/development/test-vectors/";
|
||||
downloadPage = "https://github.com/pyca/cryptography/tree/master/vectors";
|
||||
license = with licenses; [ asl20 bsd3 ];
|
||||
license = with licenses; [
|
||||
asl20
|
||||
bsd3
|
||||
];
|
||||
maintainers = with maintainers; [ SuperSandro2000 ];
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user