2023-02-16 17:41:37 +00:00
|
|
|
{ backoff
|
|
|
|
, sparqlwrapper
|
|
|
|
, boto3
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, gremlinpython
|
|
|
|
, jsonpath-ng
|
|
|
|
, lib
|
|
|
|
, moto
|
|
|
|
, openpyxl
|
|
|
|
, opensearch-py
|
|
|
|
, pandas
|
|
|
|
, pg8000
|
|
|
|
, poetry-core
|
|
|
|
, progressbar2
|
|
|
|
, pyarrow
|
|
|
|
, pymysql
|
|
|
|
, pyodbc
|
|
|
|
, pytestCheckHook
|
|
|
|
, pythonOlder
|
|
|
|
, redshift-connector
|
|
|
|
, requests-aws4auth
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "awswrangler";
|
2023-08-22 20:05:09 +00:00
|
|
|
version = "3.3.0";
|
2023-02-16 17:41:37 +00:00
|
|
|
format = "pyproject";
|
|
|
|
|
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}";
|
2023-08-22 20:05:09 +00:00
|
|
|
hash = "sha256-Sb5yqbEqGmwhPoG21+uMnl8Jdn3Gc455guceQhAflWY=";
|
2023-02-16 17:41:37 +00:00
|
|
|
};
|
|
|
|
|
2023-08-22 20:05:09 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
poetry-core
|
|
|
|
];
|
2023-02-16 17:41:37 +00:00
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
boto3
|
|
|
|
gremlinpython
|
|
|
|
jsonpath-ng
|
|
|
|
openpyxl
|
|
|
|
opensearch-py
|
|
|
|
pandas
|
|
|
|
pg8000
|
|
|
|
progressbar2
|
|
|
|
pyarrow
|
|
|
|
pymysql
|
|
|
|
redshift-connector
|
|
|
|
requests-aws4auth
|
|
|
|
];
|
|
|
|
|
2023-08-22 20:05:09 +00:00
|
|
|
nativeCheckInputs = [
|
|
|
|
moto
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
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
|
|
|
];
|
|
|
|
|
|
|
|
passthru.optional-dependencies = {
|
2023-08-22 20:05:09 +00:00
|
|
|
sqlserver = [
|
|
|
|
pyodbc
|
|
|
|
];
|
|
|
|
sparql = [
|
|
|
|
sparqlwrapper
|
|
|
|
];
|
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
|
|
|
};
|
|
|
|
}
|