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