2023-05-14 13:03:44 +00:00
|
|
|
{ lib
|
|
|
|
, fetchFromGitHub
|
|
|
|
, fetchPypi
|
|
|
|
, python3
|
|
|
|
}:
|
|
|
|
|
|
|
|
let
|
|
|
|
python = python3.override {
|
|
|
|
packageOverrides = pySelf: pySuper: {
|
|
|
|
# flask-appbuilder doesn't work with sqlalchemy 2.x, flask-appbuilder 3.x
|
|
|
|
# https://github.com/dpgaspar/Flask-AppBuilder/issues/2038
|
|
|
|
flask-appbuilder = pySuper.flask-appbuilder.overridePythonAttrs (o: {
|
|
|
|
meta.broken = false;
|
|
|
|
});
|
2023-05-30 22:14:03 +00:00
|
|
|
# a knock-on effect from overriding the sqlalchemy version
|
2023-05-14 13:03:44 +00:00
|
|
|
flask-sqlalchemy = pySuper.flask-sqlalchemy.overridePythonAttrs (o: {
|
|
|
|
src = fetchPypi {
|
|
|
|
pname = "Flask-SQLAlchemy";
|
|
|
|
version = "2.5.1";
|
|
|
|
hash = "sha256-K9pEtD58rLFdTgX/PMH4vJeTbMRkYjQkECv8LDXpWRI=";
|
|
|
|
};
|
|
|
|
format = "setuptools";
|
|
|
|
});
|
|
|
|
# apache-airflow doesn't work with sqlalchemy 2.x
|
|
|
|
# https://github.com/apache/airflow/issues/28723
|
|
|
|
sqlalchemy = pySuper.sqlalchemy.overridePythonAttrs (o: rec {
|
|
|
|
version = "1.4.48";
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "sqlalchemy";
|
|
|
|
repo = "sqlalchemy";
|
|
|
|
rev = "refs/tags/rel_${lib.replaceStrings [ "." ] [ "_" ] version}";
|
|
|
|
hash = "sha256-qyD3uoxEnD2pdVvwpUlSqHB3drD4Zg/+ov4CzLFIlLs=";
|
|
|
|
};
|
2023-07-21 15:03:19 +00:00
|
|
|
disabledTestPaths = [
|
|
|
|
"test/aaa_profiling"
|
|
|
|
"test/ext/mypy"
|
|
|
|
];
|
2023-05-14 13:03:44 +00:00
|
|
|
});
|
2023-05-30 22:14:03 +00:00
|
|
|
|
|
|
|
apache-airflow = pySelf.callPackage ./python-package.nix { };
|
2023-05-14 13:03:44 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
in
|
2023-05-30 22:14:03 +00:00
|
|
|
# See note in ./python-package.nix for
|
2023-05-14 13:03:44 +00:00
|
|
|
# instructions on manually testing the web UI
|
2023-06-12 13:46:00 +00:00
|
|
|
with python.pkgs; (toPythonApplication apache-airflow).overrideAttrs (previousAttrs: {
|
2023-05-30 22:14:03 +00:00
|
|
|
# Provide access to airflow's modified python package set
|
|
|
|
# for the cases where external scripts need to import
|
|
|
|
# airflow modules, though *caveat emptor* because many of
|
|
|
|
# these packages will not be built by hydra and many will
|
|
|
|
# not work at all due to the unexpected version overrides
|
|
|
|
# here.
|
2023-06-12 13:46:00 +00:00
|
|
|
passthru = (previousAttrs.passthru or { }) // {
|
|
|
|
pythonPackages = python.pkgs;
|
|
|
|
};
|
2023-05-30 22:14:03 +00:00
|
|
|
})
|