python312Packages.hishel: format with nixfmt

This commit is contained in:
Fabian Affolter 2024-04-12 21:27:49 +02:00
parent 7289c271eb
commit cb99251ab2

View file

@ -1,18 +1,19 @@
{ lib {
, anysqlite lib,
, boto3 anysqlite,
, buildPythonPackage boto3,
, fetchFromGitHub buildPythonPackage,
, hatch-fancy-pypi-readme fetchFromGitHub,
, hatchling hatch-fancy-pypi-readme,
, httpx hatchling,
, moto httpx,
, pytest-asyncio moto,
, pytestCheckHook pytest-asyncio,
, pythonOlder pytestCheckHook,
, pyyaml pythonOlder,
, redis pyyaml,
, trio redis,
trio,
}: }:
buildPythonPackage rec { buildPythonPackage rec {
@ -34,23 +35,13 @@ buildPythonPackage rec {
hatchling hatchling
]; ];
dependencies = [ dependencies = [ httpx ];
httpx
];
passthru.optional-dependencies = { passthru.optional-dependencies = {
redis = [ redis = [ redis ];
redis s3 = [ boto3 ];
]; sqlite = [ anysqlite ];
s3 = [ yaml = [ pyyaml ];
boto3
];
sqlite = [
anysqlite
];
yaml = [
pyyaml
];
}; };
nativeCheckInputs = [ nativeCheckInputs = [
@ -60,9 +51,7 @@ buildPythonPackage rec {
trio trio
] ++ lib.flatten (builtins.attrValues passthru.optional-dependencies); ] ++ lib.flatten (builtins.attrValues passthru.optional-dependencies);
pythonImportsCheck = [ pythonImportsCheck = [ "hishel" ];
"hishel"
];
disabledTests = [ disabledTests = [
# Tests require a running Redis instance # Tests require a running Redis instance
@ -83,4 +72,3 @@ buildPythonPackage rec {
maintainers = with maintainers; [ fab ]; maintainers = with maintainers; [ fab ];
}; };
} }