8 python = python3.override {
9 packageOverrides = pySelf: pySuper: {
10 connexion = pySuper.connexion.overridePythonAttrs (o: rec {
12 src = fetchFromGitHub {
15 rev = "refs/tags/${version}";
16 hash = "sha256-1v1xCHY3ZnZG/Vu9wN/it7rLKC/StoDefoMNs+hMjIs=";
18 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
105 with python.pkgs; (toPythonApplication apache-airflow).overrideAttrs (previousAttrs: {
106 # Provide access to airflow's modified python package set
107 # for the cases where external scripts need to import
108 # airflow modules, though *caveat emptor* because many of
109 # these packages will not be built by hydra and many will
110 # not work at all due to the unexpected version overrides
112 passthru = (previousAttrs.passthru or { }) // {
113 pythonPackages = python.pkgs;