374e6bcc40
Format all Nix files using the officially approved formatter, making the CI check introduced in the previous commit succeed: nix-build ci -A fmt.check This is the next step of the of the [implementation](https://github.com/NixOS/nixfmt/issues/153) of the accepted [RFC 166](https://github.com/NixOS/rfcs/pull/166). This commit will lead to merge conflicts for a number of PRs, up to an estimated ~1100 (~33%) among the PRs with activity in the past 2 months, but that should be lower than what it would be without the previous [partial treewide format](https://github.com/NixOS/nixpkgs/pull/322537). Merge conflicts caused by this commit can now automatically be resolved while rebasing using the [auto-rebase script](https://github.com/NixOS/nixpkgs/tree/8616af08d915377bd930395f3b700a0e93d08728/maintainers/scripts/auto-rebase). If you run into any problems regarding any of this, please reach out to the [formatting team](https://nixos.org/community/teams/formatting/) by pinging @NixOS/nix-formatting.
89 lines
1.7 KiB
Nix
89 lines
1.7 KiB
Nix
{
|
|
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,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "awswrangler";
|
|
version = "3.11.0";
|
|
pyproject = true;
|
|
|
|
disabled = pythonOlder "3.8";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "aws";
|
|
repo = "aws-sdk-pandas";
|
|
tag = version;
|
|
hash = "sha256-dIdNrfhBrfrzXmspw25yd/y6MbXRrLfDveCQk+AERV0=";
|
|
};
|
|
|
|
pythonRelaxDeps = [ "packaging" ];
|
|
|
|
build-system = [ poetry-core ];
|
|
|
|
dependencies = [
|
|
boto3
|
|
gremlinpython
|
|
jsonpath-ng
|
|
openpyxl
|
|
opensearch-py
|
|
pandas
|
|
pg8000
|
|
progressbar2
|
|
pyarrow
|
|
pymysql
|
|
redshift-connector
|
|
requests-aws4auth
|
|
];
|
|
|
|
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
|
|
"tests/unit/test_metadata.py"
|
|
"tests/unit/test_session.py"
|
|
"tests/unit/test_utils.py"
|
|
"tests/unit/test_moto.py"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Pandas on AWS";
|
|
homepage = "https://github.com/aws/aws-sdk-pandas";
|
|
changelog = "https://github.com/aws/aws-sdk-pandas/releases/tag/${version}";
|
|
license = licenses.asl20;
|
|
maintainers = with maintainers; [ mcwitt ];
|
|
};
|
|
}
|