mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-03-14 14:16:35 +01:00
There is no need to disable Python packages for Python versions that are
no longer in Nixpkgs.
This change was generated using the following script:
pattern='^\s*disabled\s*=\s*pythonOlder\s*"3\.\([0-9]\|10\)"\s*;\s*$'
for f in $(find -name '*.nix'); do
grep -q "$pattern" "$f" || continue
sed -i "/$pattern/d" "$f"
if [ $(grep -c pythonOlder "$f") == 1 ]; then
sed -i '/^\s*pythonOlder,\s*$/d' "$f"
fi
nixfmt "$f"
done
70 lines
1.3 KiB
Nix
70 lines
1.3 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
buildPythonPackage,
|
|
callPackage,
|
|
fetchPypi,
|
|
hatchling,
|
|
appnope,
|
|
comm,
|
|
ipython,
|
|
jupyter-client,
|
|
jupyter-core,
|
|
matplotlib-inline,
|
|
nest-asyncio,
|
|
packaging,
|
|
psutil,
|
|
pyzmq,
|
|
tornado,
|
|
traitlets,
|
|
|
|
# Reverse dependency
|
|
sage,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "ipykernel";
|
|
version = "6.30.1";
|
|
pyproject = true;
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-arsnAWGJZALna5E5T83OXRvl1F9FZnHlCAVy+FBb45s=";
|
|
};
|
|
|
|
# debugpy is optional, see https://github.com/ipython/ipykernel/pull/767
|
|
pythonRemoveDeps = [ "debugpy" ];
|
|
|
|
nativeBuildInputs = [ hatchling ];
|
|
|
|
propagatedBuildInputs = [
|
|
comm
|
|
ipython
|
|
jupyter-client
|
|
jupyter-core
|
|
matplotlib-inline
|
|
nest-asyncio
|
|
packaging
|
|
psutil
|
|
pyzmq
|
|
tornado
|
|
traitlets
|
|
]
|
|
++ lib.optionals stdenv.hostPlatform.isDarwin [ appnope ];
|
|
|
|
# check in passthru.tests.pytest to escape infinite recursion with ipyparallel
|
|
doCheck = false;
|
|
|
|
passthru.tests = {
|
|
pytest = callPackage ./tests.nix { };
|
|
inherit sage;
|
|
};
|
|
|
|
meta = {
|
|
description = "IPython Kernel for Jupyter";
|
|
homepage = "https://ipython.org/";
|
|
changelog = "https://github.com/ipython/ipykernel/releases/tag/v${version}";
|
|
license = lib.licenses.bsd3;
|
|
teams = [ lib.teams.jupyter ];
|
|
};
|
|
}
|