7 python = python3.override {
8 packageOverrides = pySelf: pySuper: {
9 connexion = pySuper.connexion.overridePythonAttrs (o: rec {
11 src = fetchFromGitHub {
14 rev = "refs/tags/${version}";
15 hash = "sha256-1v1xCHY3ZnZG/Vu9wN/it7rLKC/StoDefoMNs+hMjIs=";
17 nativeBuildInputs = with pySelf; [
23 propagatedBuildInputs = with pySelf; [
31 openapi-spec-validator
37 nativeCheckInputs = with pySelf; [
46 "test_openapi_yaml_behind_proxy"
50 flask = pySuper.flask.overridePythonAttrs (o: rec {
55 hash = "sha256-7e6bCn/yZiG9WowQ/0hK4oc3okENmbC7mmhQx/uXeqA=";
57 nativeBuildInputs = (o.nativeBuildInputs or []) ++ [
61 # flask-appbuilder doesn't work with sqlalchemy 2.x, flask-appbuilder 3.x
62 # https://github.com/dpgaspar/Flask-AppBuilder/issues/2038
63 flask-appbuilder = pySuper.flask-appbuilder.overridePythonAttrs (o: {
66 # a knock-on effect from overriding the sqlalchemy version
67 flask-sqlalchemy = pySuper.flask-sqlalchemy.overridePythonAttrs (o: {
69 pname = "Flask-SQLAlchemy";
71 hash = "sha256-K9pEtD58rLFdTgX/PMH4vJeTbMRkYjQkECv8LDXpWRI=";
73 format = "setuptools";
75 httpcore = pySuper.httpcore.overridePythonAttrs (o: rec {
76 # nullify upstream's pytest flags which cause
77 # "TLS/SSL connection has been closed (EOF)"
78 # with pytest-httpbin 1.x
80 substituteInPlace pyproject.toml \
81 --replace '[tool.pytest.ini_options]' '[tool.notpytest.ini_options]'
84 pytest-httpbin = pySuper.pytest-httpbin.overridePythonAttrs (o: rec {
86 src = fetchFromGitHub {
88 repo = "pytest-httpbin";
89 rev = "refs/tags/v${version}";
90 hash = "sha256-S4ThQx4H3UlKhunJo35esPClZiEn7gX/Qwo4kE1QMTI=";
93 # apache-airflow doesn't work with sqlalchemy 2.x
94 # https://github.com/apache/airflow/issues/28723
95 sqlalchemy = pySuper.sqlalchemy_1_4;
97 apache-airflow = pySelf.callPackage ./python-package.nix { };
101 # See note in ./python-package.nix for
102 # instructions on manually testing the web UI
103 with python.pkgs; (toPythonApplication apache-airflow).overrideAttrs (previousAttrs: {
104 # Provide access to airflow's modified python package set
105 # for the cases where external scripts need to import
106 # airflow modules, though *caveat emptor* because many of
107 # these packages will not be built by hydra and many will
108 # not work at all due to the unexpected version overrides
110 passthru = (previousAttrs.passthru or { }) // {
111 pythonPackages = python.pkgs;