depot/third_party/nixpkgs/pkgs/development/python-modules/jupyter-packaging/default.nix
Default email 841d9c7fc1 Project import generated by Copybara.
GitOrigin-RevId: 3a8d7958a610cd3fec3a6f424480f91a1b259185
2021-06-29 00:13:55 +01:00

49 lines
1.1 KiB
Nix

{ lib
, buildPythonPackage
, fetchPypi
, deprecation
, pythonOlder
, packaging
, pytestCheckHook
, tomlkit
}:
buildPythonPackage rec {
pname = "jupyter-packaging";
version = "0.10.2";
disabled = pythonOlder "3.7";
src = fetchPypi {
pname = "jupyter_packaging";
inherit version;
sha256 = "sha256-iEX0ht1IwWYM+tGOUJHRwDVA6y6fvzzs8h7LIrabh3A=";
};
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 ];
};
}