2021-03-23 19:22:30 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
2021-04-26 19:14:03 +00:00
|
|
|
, deprecation
|
2022-08-12 12:06:08 +00:00
|
|
|
, hatchling
|
2021-03-23 19:22:30 +00:00
|
|
|
, pythonOlder
|
|
|
|
, packaging
|
|
|
|
, pytestCheckHook
|
2022-08-12 12:06:08 +00:00
|
|
|
, pytest-timeout
|
2022-09-30 11:47:45 +00:00
|
|
|
, setuptools
|
2021-04-26 19:14:03 +00:00
|
|
|
, 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
|
|
|
};
|
|
|
|
|
2022-08-12 12:06:08 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
hatchling
|
|
|
|
];
|
|
|
|
|
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;
|
|
|
|
maintainers = [ maintainers.elohmeier ];
|
|
|
|
};
|
|
|
|
}
|