Skip to content

Commit 37226af

Browse files
committed
python312Packages.great-expectations: init at 1.2.1
1 parent 26c3a41 commit 37226af

File tree

2 files changed

+137
-0
lines changed

2 files changed

+137
-0
lines changed
Lines changed: 135 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,135 @@
1+
{
2+
lib,
3+
buildPythonPackage,
4+
fetchFromGitHub,
5+
setuptools,
6+
altair,
7+
cryptography,
8+
jinja2,
9+
jsonschema,
10+
marshmallow,
11+
mistune,
12+
numpy,
13+
packaging,
14+
pandas,
15+
posthog,
16+
pydantic,
17+
pyparsing,
18+
python-dateutil,
19+
requests,
20+
ruamel-yaml,
21+
scipy,
22+
tqdm,
23+
tzlocal,
24+
25+
# test
26+
pytestCheckHook,
27+
pytest-mock,
28+
pytest-order,
29+
pytest-random-order,
30+
click,
31+
flaky,
32+
freezegun,
33+
invoke,
34+
moto,
35+
psycopg2,
36+
requirements-parser,
37+
responses,
38+
sqlalchemy,
39+
}:
40+
41+
buildPythonPackage rec {
42+
pname = "great-expectations";
43+
version = "1.2.1";
44+
pyproject = true;
45+
46+
src = fetchFromGitHub {
47+
owner = "great-expectations";
48+
repo = "great_expectations";
49+
rev = "refs/tags/${version}";
50+
hash = "sha256-TV07vmc0XdP6ICv7Kws79zACCsahZ6FlhplJHbpDFNk=";
51+
};
52+
53+
postPatch = ''
54+
substituteInPlace tests/conftest.py --replace 'locale.setlocale(locale.LC_ALL, "en_US.UTF-8")' ""
55+
'';
56+
57+
build-system = [ setuptools ];
58+
59+
dependencies = [
60+
altair
61+
cryptography
62+
jinja2
63+
jsonschema
64+
marshmallow
65+
mistune
66+
numpy
67+
packaging
68+
pandas
69+
posthog
70+
pydantic
71+
pyparsing
72+
python-dateutil
73+
requests
74+
ruamel-yaml
75+
scipy
76+
tqdm
77+
tzlocal
78+
];
79+
80+
pythonRelaxDeps = [
81+
"altair"
82+
"pandas"
83+
"posthog"
84+
];
85+
86+
nativeCheckInputs = [
87+
pytestCheckHook
88+
pytest-mock
89+
pytest-order
90+
pytest-random-order
91+
click
92+
flaky
93+
freezegun
94+
invoke
95+
moto
96+
psycopg2
97+
requirements-parser
98+
responses
99+
sqlalchemy
100+
] ++ moto.optional-dependencies.s3 ++ moto.optional-dependencies.sns;
101+
102+
disabledTestPaths = [
103+
# try to access external URLs:
104+
"tests/integration/cloud/rest_contracts"
105+
"tests/integration/spark"
106+
107+
# moto-related import errors:
108+
"tests/actions"
109+
"tests/data_context"
110+
"tests/datasource"
111+
"tests/execution_engine"
112+
113+
# locale-related rendering issues, mostly:
114+
"tests/core/test__docs_decorators.py"
115+
"tests/expectations/test_expectation_atomic_renderers.py"
116+
"tests/render"
117+
];
118+
119+
disabledTests = [
120+
# tries to access network:
121+
"test_checkpoint_run_with_data_docs_and_slack_actions_emit_page_links"
122+
"test_checkpoint_run_with_slack_action_no_page_links"
123+
];
124+
125+
pythonImportsCheck = [ "great_expectations" ];
126+
pytestFlagsArray = [ "-m 'not spark and not postgresql and not snowflake'" ];
127+
128+
meta = {
129+
description = "Library for writing unit tests for data validation";
130+
homepage = "https://docs.greatexpectations.io";
131+
changelog = "https://github.com/great-expectations/great_expectations/releases/tag/${version}";
132+
license = lib.licenses.asl20;
133+
maintainers = with lib.maintainers; [ bcdarwin ];
134+
};
135+
}

pkgs/top-level/python-packages.nix

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5451,6 +5451,8 @@ self: super: with self; {
54515451

54525452
greatfet = callPackage ../development/python-modules/greatfet { };
54535453

5454+
great-expectations = callPackage ../development/python-modules/great-expectations { };
5455+
54545456
great-tables = callPackage ../development/python-modules/great-tables { };
54555457

54565458
greeclimate = callPackage ../development/python-modules/greeclimate { };

0 commit comments

Comments
 (0)