9405df4a82
GitOrigin-RevId: 8e4fe32876ca15e3d5eb3ecd3ca0b224417f5f17
49 lines
1.1 KiB
Nix
49 lines
1.1 KiB
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, deprecation
|
|
, pythonOlder
|
|
, packaging
|
|
, pytestCheckHook
|
|
, tomlkit
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "jupyter-packaging";
|
|
version = "0.8.2";
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchPypi {
|
|
pname = "jupyter_packaging";
|
|
inherit version;
|
|
sha256 = "sha256-ddzJDcFyY5Iida4QvpACh0FRBIy95IQHCEF5HQl5QbI=";
|
|
};
|
|
|
|
propagatedBuildInputs = [ deprecation packaging tomlkit ];
|
|
|
|
checkInputs = [ pytestCheckHook ];
|
|
|
|
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 ];
|
|
};
|
|
}
|