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";
|
2023-05-24 13:37:59 +00:00
|
|
|
version = "8.6.1";
|
2022-09-09 14:08:57 +00:00
|
|
|
format = "pyproject";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2023-05-24 13:37:59 +00:00
|
|
|
hash = "sha256-o5ql75VgFwvw6a/typ/wReG5wYMsSTAzd+3Mkc6p+3c=";
|
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 \
|
|
|
|
--replace '"jupyterlab>=3.0.0,==3.*",' ""
|
|
|
|
'';
|
|
|
|
|
2022-09-09 14:08:57 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
hatchling
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-09-09 14:08:57 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
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/";
|
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = with maintainers; [ fridh ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|