9c6ee729d6
GitOrigin-RevId: 6cee3b5893090b0f5f0a06b4cf42ca4e60e5d222
79 lines
1.6 KiB
Nix
79 lines
1.6 KiB
Nix
{ 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";
|
|
version = "3.2.1";
|
|
format = "pyproject";
|
|
|
|
disabled = pythonOlder "3.8";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "aws";
|
|
repo = "aws-sdk-pandas";
|
|
rev = "refs/tags/${version}";
|
|
hash = "sha256-mpKvg3CM8kMK+RI9XdHHGfy6qlMye+T/B77M4XeTqw0=";
|
|
};
|
|
|
|
nativeBuildInputs = [ poetry-core ];
|
|
|
|
propagatedBuildInputs = [
|
|
boto3
|
|
gremlinpython
|
|
jsonpath-ng
|
|
openpyxl
|
|
opensearch-py
|
|
pandas
|
|
pg8000
|
|
progressbar2
|
|
pyarrow
|
|
pymysql
|
|
redshift-connector
|
|
requests-aws4auth
|
|
];
|
|
|
|
nativeCheckInputs = [ moto pytestCheckHook ];
|
|
|
|
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
|
|
"tests/unit/test_metadata.py"
|
|
"tests/unit/test_session.py"
|
|
"tests/unit/test_utils.py"
|
|
"tests/unit/test_moto.py"
|
|
];
|
|
|
|
passthru.optional-dependencies = {
|
|
sqlserver = [ pyodbc ];
|
|
sparql = [ sparqlwrapper ];
|
|
};
|
|
|
|
meta = {
|
|
description = "Pandas on AWS";
|
|
homepage = "https://github.com/aws/aws-sdk-pandas";
|
|
changelog = "https://github.com/aws/aws-sdk-pandas/releases/tag/${version}";
|
|
license = lib.licenses.asl20;
|
|
maintainers = with lib.maintainers; [ mcwitt ];
|
|
};
|
|
}
|