2021-03-23 19:22:30 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
2021-04-26 19:14:03 +00:00
|
|
|
, deprecation
|
2021-03-23 19:22:30 +00:00
|
|
|
, pythonOlder
|
|
|
|
, packaging
|
|
|
|
, pytestCheckHook
|
2021-04-26 19:14:03 +00:00
|
|
|
, tomlkit
|
2021-03-23 19:22:30 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "jupyter-packaging";
|
2021-06-28 23:13:55 +00:00
|
|
|
version = "0.10.2";
|
2021-03-23 19:22:30 +00:00
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
2021-04-26 19:14:03 +00:00
|
|
|
pname = "jupyter_packaging";
|
|
|
|
inherit version;
|
2021-06-28 23:13:55 +00:00
|
|
|
sha256 = "sha256-iEX0ht1IwWYM+tGOUJHRwDVA6y6fvzzs8h7LIrabh3A=";
|
2021-03-23 19:22:30 +00:00
|
|
|
};
|
|
|
|
|
2021-04-26 19:14:03 +00:00
|
|
|
propagatedBuildInputs = [ deprecation packaging tomlkit ];
|
2021-03-23 19:22:30 +00:00
|
|
|
|
|
|
|
checkInputs = [ pytestCheckHook ];
|
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|