python312Packages.awswrangler: refactor

This commit is contained in:
Fabian Affolter 2024-04-23 08:42:29 +02:00
parent 31748b91a2
commit f3d0985a08
1 changed files with 14 additions and 7 deletions

View File

@ -39,12 +39,15 @@ buildPythonPackage rec {
hash = "sha256-gm6ieteW+NcY+AOLcMZLUPcSi2Z/Mo27rzd1i9imp5I=";
};
pythonRelaxDeps = [ "packaging" ];
build-system = [
poetry-core
pythonRelaxDepsHook
];
pythonRelaxDeps = [ "packaging" ];
nativeBuildInputs = [
pythonRelaxDepsHook
];
dependencies = [
boto3
@ -61,12 +64,21 @@ buildPythonPackage rec {
requests-aws4auth
];
passthru.optional-dependencies = {
sqlserver = [ pyodbc ];
sparql = [ sparqlwrapper ];
};
nativeCheckInputs = [
moto
pyparsing
pytestCheckHook
];
pythonImportsCheck = [
"awswrangler"
];
pytestFlagsArray = [
# Subset of tests that run in upstream CI (many others require credentials)
# https://github.com/aws/aws-sdk-pandas/blob/20fec775515e9e256e8cee5aee12966516608840/.github/workflows/minimal-tests.yml#L36-L43
@ -76,11 +88,6 @@ buildPythonPackage rec {
"tests/unit/test_moto.py"
];
passthru.optional-dependencies = {
sqlserver = [ pyodbc ];
sparql = [ sparqlwrapper ];
};
meta = with lib; {
description = "Pandas on AWS";
homepage = "https://github.com/aws/aws-sdk-pandas";