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