2020-12-29 07:55:54 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
2021-03-24 19:05:24 +00:00
|
|
|
, deprecation
|
2020-12-29 07:55:54 +00:00
|
|
|
, pythonOlder
|
|
|
|
, packaging
|
|
|
|
, pytestCheckHook
|
2021-03-24 19:05:24 +00:00
|
|
|
, tomlkit
|
2020-12-29 07:55:54 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "jupyter-packaging";
|
2021-04-04 21:49:13 +00:00
|
|
|
version = "0.8.2";
|
2020-12-29 07:55:54 +00:00
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
2021-03-24 19:05:24 +00:00
|
|
|
pname = "jupyter_packaging";
|
|
|
|
inherit version;
|
2021-04-04 21:49:13 +00:00
|
|
|
sha256 = "sha256-ddzJDcFyY5Iida4QvpACh0FRBIy95IQHCEF5HQl5QbI=";
|
2020-12-29 07:55:54 +00:00
|
|
|
};
|
|
|
|
|
2021-03-24 19:05:24 +00:00
|
|
|
propagatedBuildInputs = [ deprecation packaging tomlkit ];
|
2020-12-29 07:55:54 +00:00
|
|
|
|
|
|
|
checkInputs = [ pytestCheckHook ];
|
|
|
|
|
|
|
|
preCheck = ''
|
|
|
|
export HOME=$(mktemp -d)
|
|
|
|
'';
|
|
|
|
|
2021-03-24 19:05:24 +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"
|
|
|
|
];
|
2020-12-29 07:55:54 +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 ];
|
|
|
|
};
|
|
|
|
}
|