python3Packages.jupyter-packaging: fix src and build

This commit is contained in:
Jonathan Ringer 2021-03-24 12:05:24 -07:00 committed by Frederik Rietdijk
parent 4835808d40
commit d0a5a05377

View file

@ -1,9 +1,11 @@
{ lib
, buildPythonPackage
, fetchPypi
, deprecation
, pythonOlder
, packaging
, pytestCheckHook
, tomlkit
}:
buildPythonPackage rec {
@ -12,11 +14,12 @@ buildPythonPackage rec {
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
pname = "jupyter_packaging";
inherit version;
sha256 = "276c9f884286695f6ab57a017f4bb9dd4df4f5e232b783050d2aa55b6b9ed650";
};
propagatedBuildInputs = [ packaging ];
propagatedBuildInputs = [ deprecation packaging tomlkit ];
checkInputs = [ pytestCheckHook ];
@ -24,8 +27,16 @@ buildPythonPackage rec {
export HOME=$(mktemp -d)
'';
# disable tests depending on network connection
disabledTests = [ "test_develop" "test_install" ];
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" ];