Files
nixpkgs/pkgs/development/python-modules/jupyter-packaging/default.nix
T
Michael Daniels 075e8c2c4f treewide: change 'format = "pyproject";' to 'pyproject = true;'
This is almost all find-and-replace.

I manually edited:
* pkgs/development/python-modules/notifications-android-tv/default.nix,
* pkgs/servers/home-assistant/default.nix,
* pkgs/development/tools/continuous-integration/buildbot/master.nix

A few files have not been changed in this PR because they would cause rebuilds.

This PR should have 0 rebuilds.
2026-01-12 17:50:35 -05:00

73 lines
1.5 KiB
Nix

{
lib,
buildPythonPackage,
fetchPypi,
fetchpatch,
deprecation,
hatchling,
packaging,
pytestCheckHook,
pytest-timeout,
setuptools,
tomlkit,
}:
buildPythonPackage rec {
pname = "jupyter-packaging";
version = "0.12.3";
pyproject = true;
src = fetchPypi {
pname = "jupyter_packaging";
inherit version;
hash = "sha256-nZsrY7l//WeovFORwypCG8QVsmSjLJnk2NjdMdqunPQ=";
};
patches = [
(fetchpatch {
name = "setuptools-68-test-compatibility.patch";
url = "https://github.com/jupyter/jupyter-packaging/commit/e963fb27aa3b58cd70c5ca61ebe68c222d803b7e.patch";
hash = "sha256-NlO07wBCutAJ1DgoT+rQFkuC9Y+DyF1YFlTwWpwsJzo=";
})
];
nativeBuildInputs = [ hatchling ];
propagatedBuildInputs = [
deprecation
packaging
setuptools
tomlkit
];
nativeCheckInputs = [
pytestCheckHook
pytest-timeout
];
pytestFlags = [ "-Wignore::DeprecationWarning" ];
preCheck = ''
export HOME=$(mktemp -d)
'';
disabledTests = [
# disable tests depending on network connection
"test_develop"
"test_install"
# Avoid unmaintained "mocker" fixture library, and calls to dependent "build" module
"test_build"
"test_npm_build"
"test_create_cmdclass"
"test_ensure_with_skip_npm"
];
pythonImportsCheck = [ "jupyter_packaging" ];
meta = {
description = "Jupyter Packaging Utilities";
homepage = "https://github.com/jupyter/jupyter-packaging";
license = lib.licenses.bsd3;
};
}