1a04744f74
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
60 lines
1.0 KiB
Nix
60 lines
1.0 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
pythonAtLeast,
|
|
fetchPypi,
|
|
hatchling,
|
|
hatch-nodejs-version,
|
|
fastjsonschema,
|
|
jsonschema,
|
|
jupyter-core,
|
|
traitlets,
|
|
pep440,
|
|
pytestCheckHook,
|
|
testpath,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "nbformat";
|
|
version = "5.10.4";
|
|
pyproject = true;
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-MiFosU+Tel0RNimI7KwqSVLT2OOiy+sjGVhGMSJtWzo=";
|
|
};
|
|
|
|
build-system = [
|
|
hatchling
|
|
hatch-nodejs-version
|
|
];
|
|
|
|
dependencies = [
|
|
fastjsonschema
|
|
jsonschema
|
|
jupyter-core
|
|
traitlets
|
|
];
|
|
|
|
pythonImportsCheck = [ "nbformat" ];
|
|
|
|
nativeCheckInputs = [
|
|
pep440
|
|
pytestCheckHook
|
|
testpath
|
|
];
|
|
|
|
pytestFlags = [ "-Wignore::pytest.PytestUnraisableExceptionWarning" ];
|
|
|
|
# Some of the tests use localhost networking.
|
|
__darwinAllowLocalNetworking = true;
|
|
|
|
meta = {
|
|
description = "Jupyter Notebook format";
|
|
mainProgram = "jupyter-trust";
|
|
homepage = "https://jupyter.org/";
|
|
license = lib.licenses.bsd3;
|
|
maintainers = [ ];
|
|
};
|
|
}
|