python312Packages.aiooss2: refactor

This commit is contained in:
Fabian Affolter 2024-04-15 00:20:03 +02:00
parent 0201352d0f
commit 2246d3ff90

View File

@ -1,16 +1,17 @@
{ lib {
, aiohttp lib,
, buildPythonPackage aiohttp,
, fetchFromGitHub buildPythonPackage,
, oss2 fetchFromGitHub,
, pytest-asyncio oss2,
, pytest-mock pytest-asyncio,
, pytestCheckHook pytest-mock,
, pythonOlder pytestCheckHook,
, pythonRelaxDepsHook pythonOlder,
, requests pythonRelaxDepsHook,
, setuptools requests,
, setuptools-scm setuptools,
setuptools-scm,
}: }:
buildPythonPackage rec { buildPythonPackage rec {
@ -33,11 +34,12 @@ buildPythonPackage rec {
]; ];
build-system = [ build-system = [
pythonRelaxDepsHook
setuptools setuptools
setuptools-scm setuptools-scm
]; ];
nativeBuildInputs = [ pythonRelaxDepsHook ];
dependencies = [ dependencies = [
aiohttp aiohttp
oss2 oss2
@ -50,9 +52,7 @@ buildPythonPackage rec {
requests requests
]; ];
pythonImportsCheck = [ pythonImportsCheck = [ "aiooss2" ];
"aiooss2"
];
disabledTestPaths = [ disabledTestPaths = [
# Tests require network access # Tests require network access