python311Packages.securesystemslib: format with nixfmt

This commit is contained in:
Fabian Affolter 2024-04-16 16:27:48 +02:00
parent 0d67a0d2f6
commit a6a45ac157
1 changed files with 24 additions and 34 deletions

View File

@ -1,19 +1,20 @@
{ lib
, asn1crypto
, azure-identity
, azure-keyvault-keys
, boto3
, botocore
, buildPythonPackage
, cryptography
, ed25519
, fetchFromGitHub
, google-cloud-kms
, hatchling
, pynacl
, pyspx
, pytestCheckHook
, pythonOlder
{
lib,
asn1crypto,
azure-identity,
azure-keyvault-keys,
boto3,
botocore,
buildPythonPackage,
cryptography,
ed25519,
fetchFromGitHub,
google-cloud-kms,
hatchling,
pynacl,
pyspx,
pytestCheckHook,
pythonOlder,
}:
buildPythonPackage rec {
@ -32,17 +33,13 @@ buildPythonPackage rec {
postPatch = ''
substituteInPlace pyproject.toml \
--replace "hatchling==1.18.0" "hatchling"
--replace-fail "hatchling==1.18.0" "hatchling"
'';
nativeBuildInputs = [
hatchling
];
nativeBuildInputs = [ hatchling ];
passthru.optional-dependencies = {
PySPX = [
pyspx
];
PySPX = [ pyspx ];
awskms = [
boto3
botocore
@ -53,9 +50,7 @@ buildPythonPackage rec {
azure-keyvault-keys
cryptography
];
crypto = [
cryptography
];
crypto = [ cryptography ];
gcpkms = [
cryptography
google-cloud-kms
@ -63,11 +58,9 @@ buildPythonPackage rec {
hsm = [
asn1crypto
cryptography
# pykcs11
];
pynacl = [
pynacl
# pykcs11
];
pynacl = [ pynacl ];
# Circular dependency
# sigstore = [
# sigstore
@ -79,9 +72,7 @@ buildPythonPackage rec {
pytestCheckHook
] ++ lib.flatten (builtins.attrValues passthru.optional-dependencies);
pythonImportsCheck = [
"securesystemslib"
];
pythonImportsCheck = [ "securesystemslib" ];
disabledTestPaths = [
# pykcs11 is not available
@ -98,4 +89,3 @@ buildPythonPackage rec {
maintainers = with maintainers; [ fab ];
};
}