2020-04-24 23:36:52 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, decorator
|
2022-09-09 14:08:57 +00:00
|
|
|
, entrypoints
|
|
|
|
, fetchPypi
|
|
|
|
, hatchling
|
|
|
|
, ipykernel
|
2020-04-24 23:36:52 +00:00
|
|
|
, ipython
|
2021-10-28 06:52:43 +00:00
|
|
|
, jupyter-client
|
2022-03-05 16:20:37 +00:00
|
|
|
, psutil
|
2022-09-09 14:08:57 +00:00
|
|
|
, python-dateutil
|
|
|
|
, pythonOlder
|
|
|
|
, pyzmq
|
2020-04-24 23:36:52 +00:00
|
|
|
, tornado
|
2022-03-05 16:20:37 +00:00
|
|
|
, tqdm
|
2022-09-09 14:08:57 +00:00
|
|
|
, traitlets
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "ipyparallel";
|
2024-04-21 15:54:59 +00:00
|
|
|
version = "8.8.0";
|
|
|
|
pyproject = true;
|
2022-09-09 14:08:57 +00:00
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
disabled = pythonOlder "3.8";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2024-04-21 15:54:59 +00:00
|
|
|
hash = "sha256-JATVn4ajqqO9J79rV993e/9cE2PBxuYEA3WdFu1C3Hs=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2023-10-09 19:29:22 +00:00
|
|
|
# We do not need the jupyterlab build dependency, because we do not need to
|
|
|
|
# build any JS components; these are present already in the PyPI artifact.
|
|
|
|
#
|
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace pyproject.toml \
|
2024-04-21 15:54:59 +00:00
|
|
|
--replace '"jupyterlab==4.*",' ""
|
2023-10-09 19:29:22 +00:00
|
|
|
'';
|
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
build-system = [
|
2022-09-09 14:08:57 +00:00
|
|
|
hatchling
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
dependencies = [
|
2022-09-09 14:08:57 +00:00
|
|
|
decorator
|
|
|
|
entrypoints
|
|
|
|
ipykernel
|
|
|
|
ipython
|
|
|
|
jupyter-client
|
|
|
|
psutil
|
|
|
|
python-dateutil
|
|
|
|
pyzmq
|
|
|
|
tornado
|
|
|
|
tqdm
|
|
|
|
traitlets
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
# Requires access to cluster
|
|
|
|
doCheck = false;
|
|
|
|
|
2022-09-09 14:08:57 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"ipyparallel"
|
|
|
|
];
|
2020-06-02 18:00:15 +00:00
|
|
|
|
2022-09-09 14:08:57 +00:00
|
|
|
meta = with lib;{
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Interactive Parallel Computing with IPython";
|
2022-09-09 14:08:57 +00:00
|
|
|
homepage = "https://ipyparallel.readthedocs.io/";
|
2024-04-21 15:54:59 +00:00
|
|
|
changelog = "https://github.com/ipython/ipyparallel/blob/${version}/docs/source/changelog.md";
|
2022-09-09 14:08:57 +00:00
|
|
|
license = licenses.bsd3;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|