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
|
|
|
|
, jupyter_core
|
|
|
|
, pexpect
|
|
|
|
, pythonOlder
|
2021-06-28 23:13:55 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "metakernel";
|
2022-12-17 10:02:37 +00:00
|
|
|
version = "0.29.4";
|
|
|
|
format = "pyproject";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
2021-06-28 23:13:55 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2022-12-17 10:02:37 +00:00
|
|
|
hash = "sha256-kxrF/Msxjht7zGs0aEcL/Sf0qwcLiSoDPDUlE7Lrcmg=";
|
2021-06-28 23:13:55 +00:00
|
|
|
};
|
|
|
|
|
2022-12-17 10:02:37 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
hatchling
|
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
ipykernel
|
|
|
|
jedi
|
|
|
|
jupyter_core
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|