2024-05-15 15:35:15 +00:00
|
|
|
{
|
|
|
|
backoff,
|
|
|
|
sparqlwrapper,
|
|
|
|
boto3,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
|
|
|
gremlinpython,
|
|
|
|
jsonpath-ng,
|
|
|
|
lib,
|
|
|
|
moto,
|
|
|
|
openpyxl,
|
|
|
|
opensearch-py,
|
|
|
|
pandas,
|
|
|
|
pg8000,
|
|
|
|
poetry-core,
|
|
|
|
progressbar2,
|
|
|
|
pyarrow,
|
|
|
|
pymysql,
|
|
|
|
pyodbc,
|
|
|
|
pyparsing,
|
|
|
|
pytestCheckHook,
|
|
|
|
pythonOlder,
|
|
|
|
redshift-connector,
|
|
|
|
requests-aws4auth,
|
2023-02-16 17:41:37 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "awswrangler";
|
2024-07-27 06:49:29 +00:00
|
|
|
version = "3.9.0";
|
2024-04-21 15:54:59 +00:00
|
|
|
pyproject = true;
|
2023-02-16 17:41:37 +00:00
|
|
|
|
2023-05-24 13:37:59 +00:00
|
|
|
disabled = pythonOlder "3.8";
|
2023-02-16 17:41:37 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "aws";
|
|
|
|
repo = "aws-sdk-pandas";
|
|
|
|
rev = "refs/tags/${version}";
|
2024-07-27 06:49:29 +00:00
|
|
|
hash = "sha256-XhTRnQ2wsCD2jiiRFHDagmMB26lZ8Oj+tscgVypN0+c=";
|
2023-02-16 17:41:37 +00:00
|
|
|
};
|
|
|
|
|
2024-05-15 15:35:15 +00:00
|
|
|
pythonRelaxDeps = [ "packaging" ];
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
build-system = [ poetry-core ];
|
2023-02-16 17:41:37 +00:00
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
|
|
|
|
dependencies = [
|
2023-02-16 17:41:37 +00:00
|
|
|
boto3
|
|
|
|
gremlinpython
|
|
|
|
jsonpath-ng
|
|
|
|
openpyxl
|
|
|
|
opensearch-py
|
|
|
|
pandas
|
|
|
|
pg8000
|
|
|
|
progressbar2
|
|
|
|
pyarrow
|
|
|
|
pymysql
|
|
|
|
redshift-connector
|
|
|
|
requests-aws4auth
|
|
|
|
];
|
|
|
|
|
2024-05-15 15:35:15 +00:00
|
|
|
passthru.optional-dependencies = {
|
|
|
|
sqlserver = [ pyodbc ];
|
|
|
|
sparql = [ sparqlwrapper ];
|
|
|
|
};
|
|
|
|
|
2023-08-22 20:05:09 +00:00
|
|
|
nativeCheckInputs = [
|
|
|
|
moto
|
2024-01-02 11:29:13 +00:00
|
|
|
pyparsing
|
2023-08-22 20:05:09 +00:00
|
|
|
pytestCheckHook
|
|
|
|
];
|
2023-02-16 17:41:37 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonImportsCheck = [ "awswrangler" ];
|
2024-05-15 15:35:15 +00:00
|
|
|
|
2023-02-16 17:41:37 +00:00
|
|
|
pytestFlagsArray = [
|
|
|
|
# Subset of tests that run in upstream CI (many others require credentials)
|
2023-05-24 13:37:59 +00:00
|
|
|
# https://github.com/aws/aws-sdk-pandas/blob/20fec775515e9e256e8cee5aee12966516608840/.github/workflows/minimal-tests.yml#L36-L43
|
|
|
|
"tests/unit/test_metadata.py"
|
|
|
|
"tests/unit/test_session.py"
|
|
|
|
"tests/unit/test_utils.py"
|
|
|
|
"tests/unit/test_moto.py"
|
2023-02-16 17:41:37 +00:00
|
|
|
];
|
|
|
|
|
2023-08-22 20:05:09 +00:00
|
|
|
meta = with lib; {
|
2023-02-16 17:41:37 +00:00
|
|
|
description = "Pandas on AWS";
|
|
|
|
homepage = "https://github.com/aws/aws-sdk-pandas";
|
|
|
|
changelog = "https://github.com/aws/aws-sdk-pandas/releases/tag/${version}";
|
2023-08-22 20:05:09 +00:00
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ mcwitt ];
|
2023-02-16 17:41:37 +00:00
|
|
|
};
|
|
|
|
}
|