depot/third_party/nixpkgs/pkgs/development/python-modules/jupyter-packaging/default.nix
Default email 02cf88bb76 Project import generated by Copybara.
GitOrigin-RevId: c4a0efdd5a728e20791b8d8d2f26f90ac228ee8d
2022-08-12 15:06:08 +03:00

59 lines
1.2 KiB
Nix

{ lib
, buildPythonPackage
, fetchPypi
, deprecation
, hatchling
, pythonOlder
, packaging
, pytestCheckHook
, pytest-timeout
, tomlkit
}:
buildPythonPackage rec {
pname = "jupyter-packaging";
version = "0.12.2";
disabled = pythonOlder "3.7";
format = "pyproject";
src = fetchPypi {
pname = "jupyter_packaging";
inherit version;
sha256 = "sha256-C5nq7PVrnR2Z57y2Yy2RSo6laY2kCyOLqJIno0FX3jI=";
};
nativeBuildInputs = [
hatchling
];
propagatedBuildInputs = [ deprecation packaging tomlkit ];
checkInputs = [
pytestCheckHook
pytest-timeout
];
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 ];
};
}