nixpkgs/pkgs/development/python-modules/jupyter-packaging/default.nix
Guillaume Girol 33afbf39f6 treewide: switch to nativeCheckInputs
checkInputs used to be added to nativeBuildInputs. Now we have
nativeCheckInputs to do that instead. Doing this treewide change allows
to keep hashes identical to before the introduction of
nativeCheckInputs.
2023-01-21 12:00:00 +00:00

66 lines
1.2 KiB
Nix

{ lib
, buildPythonPackage
, fetchPypi
, deprecation
, hatchling
, pythonOlder
, packaging
, pytestCheckHook
, pytest-timeout
, setuptools
, tomlkit
}:
buildPythonPackage rec {
pname = "jupyter-packaging";
version = "0.12.3";
disabled = pythonOlder "3.7";
format = "pyproject";
src = fetchPypi {
pname = "jupyter_packaging";
inherit version;
sha256 = "sha256-nZsrY7l//WeovFORwypCG8QVsmSjLJnk2NjdMdqunPQ=";
};
nativeBuildInputs = [
hatchling
];
propagatedBuildInputs = [
deprecation
packaging
setuptools
tomlkit
];
nativeCheckInputs = [
pytestCheckHook
pytest-timeout
];
preCheck = ''
export HOME=$(mktemp -d)
'';
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"
];
pythonImportsCheck = [ "jupyter_packaging" ];
meta = with lib; {
description = "Jupyter Packaging Utilities";
homepage = "https://github.com/jupyter/jupyter-packaging";
license = licenses.bsd3;
maintainers = [ maintainers.elohmeier ];
};
}