2021-06-28 23:13:55 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
2022-12-17 10:02:37 +00:00
|
|
|
, hatchling
|
2021-06-28 23:13:55 +00:00
|
|
|
, ipykernel
|
2022-12-17 10:02:37 +00:00
|
|
|
, jedi
|
2023-01-20 10:41:00 +00:00
|
|
|
, jupyter-core
|
2022-12-17 10:02:37 +00:00
|
|
|
, pexpect
|
|
|
|
, pythonOlder
|
2021-06-28 23:13:55 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "metakernel";
|
2024-04-21 15:54:59 +00:00
|
|
|
version = "0.30.2";
|
|
|
|
pyproject = true;
|
2022-12-17 10:02:37 +00:00
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
2021-06-28 23:13:55 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2024-04-21 15:54:59 +00:00
|
|
|
hash = "sha256-Siff2FO4SfASgkLFUgTuWXpajYZClPJghLry+8gU1aQ=";
|
2021-06-28 23:13:55 +00:00
|
|
|
};
|
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
build-system = [
|
2022-12-17 10:02:37 +00:00
|
|
|
hatchling
|
|
|
|
];
|
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
dependencies = [
|
2022-12-17 10:02:37 +00:00
|
|
|
ipykernel
|
|
|
|
jedi
|
2023-01-20 10:41:00 +00:00
|
|
|
jupyter-core
|
2022-12-17 10:02:37 +00:00
|
|
|
pexpect
|
|
|
|
];
|
2021-06-28 23:13:55 +00:00
|
|
|
|
|
|
|
# Tests hang, so disable
|
|
|
|
doCheck = false;
|
|
|
|
|
2022-12-17 10:02:37 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"metakernel"
|
|
|
|
];
|
|
|
|
|
2021-06-28 23:13:55 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Jupyter/IPython Kernel Tools";
|
|
|
|
homepage = "https://github.com/Calysto/metakernel";
|
2022-12-17 10:02:37 +00:00
|
|
|
changelog = "https://github.com/Calysto/metakernel/blob/v${version}/CHANGELOG.md";
|
2021-06-28 23:13:55 +00:00
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = with maintainers; [ thomasjm ];
|
|
|
|
};
|
|
|
|
}
|