2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchPypi,
|
|
|
|
fetchpatch,
|
|
|
|
deprecation,
|
|
|
|
hatchling,
|
|
|
|
pythonOlder,
|
|
|
|
packaging,
|
|
|
|
pytestCheckHook,
|
|
|
|
pytest-timeout,
|
|
|
|
setuptools,
|
|
|
|
tomlkit,
|
2021-03-23 19:22:30 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "jupyter-packaging";
|
2022-09-30 11:47:45 +00:00
|
|
|
version = "0.12.3";
|
2021-03-23 19:22:30 +00:00
|
|
|
disabled = pythonOlder "3.7";
|
2022-08-12 12:06:08 +00:00
|
|
|
format = "pyproject";
|
2021-03-23 19:22:30 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
2021-04-26 19:14:03 +00:00
|
|
|
pname = "jupyter_packaging";
|
|
|
|
inherit version;
|
2023-03-15 16:39:30 +00:00
|
|
|
hash = "sha256-nZsrY7l//WeovFORwypCG8QVsmSjLJnk2NjdMdqunPQ=";
|
2021-03-23 19:22:30 +00:00
|
|
|
};
|
|
|
|
|
2023-08-22 20:05:09 +00:00
|
|
|
patches = [
|
|
|
|
(fetchpatch {
|
|
|
|
name = "setuptools-68-test-compatibility.patch";
|
|
|
|
url = "https://github.com/jupyter/jupyter-packaging/commit/e963fb27aa3b58cd70c5ca61ebe68c222d803b7e.patch";
|
|
|
|
hash = "sha256-NlO07wBCutAJ1DgoT+rQFkuC9Y+DyF1YFlTwWpwsJzo=";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
nativeBuildInputs = [ hatchling ];
|
2022-08-12 12:06:08 +00:00
|
|
|
|
2022-09-30 11:47:45 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
deprecation
|
|
|
|
packaging
|
|
|
|
setuptools
|
|
|
|
tomlkit
|
|
|
|
];
|
2021-03-23 19:22:30 +00:00
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2022-08-12 12:06:08 +00:00
|
|
|
pytestCheckHook
|
|
|
|
pytest-timeout
|
|
|
|
];
|
2021-03-23 19:22:30 +00:00
|
|
|
|
|
|
|
preCheck = ''
|
|
|
|
export HOME=$(mktemp -d)
|
|
|
|
'';
|
|
|
|
|
2021-04-26 19:14:03 +00:00
|
|
|
disabledTests = [
|
|
|
|
# disable tests depending on network connection
|
|
|
|
"test_develop"
|
|
|
|
"test_install"
|
|
|
|
# Avoid unmainted "mocker" fixture library, and calls to dependent "build" module
|
|
|
|
"test_build"
|
|
|
|
"test_npm_build"
|
|
|
|
"test_create_cmdclass"
|
|
|
|
"test_ensure_with_skip_npm"
|
|
|
|
];
|
2021-03-23 19:22:30 +00:00
|
|
|
|
|
|
|
pythonImportsCheck = [ "jupyter_packaging" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Jupyter Packaging Utilities";
|
|
|
|
homepage = "https://github.com/jupyter/jupyter-packaging";
|
|
|
|
license = licenses.bsd3;
|
|
|
|
};
|
|
|
|
}
|