depot/third_party/nixpkgs/pkgs/development/python-modules/hatch-jupyter-builder/default.nix
Default email 5ca88bfbb9 Project import generated by Copybara.
GitOrigin-RevId: 9f918d616c5321ad374ae6cb5ea89c9e04bf3e58
2024-07-31 10:19:44 +00:00

48 lines
1 KiB
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
hatchling,
pytest-mock,
pytestCheckHook,
tomli,
twine,
pythonOlder,
}:
buildPythonPackage rec {
pname = "hatch-jupyter-builder";
version = "0.9.1";
pyproject = true;
src = fetchFromGitHub {
owner = "jupyterlab";
repo = "hatch-jupyter-builder";
rev = "refs/tags/v${version}";
hash = "sha256-QDWHVdjtexUNGRL+dVehdBwahSW2HmNkZKkQyuOghyI=";
};
build-system = [ hatchling ];
dependencies = [ hatchling ];
nativeCheckInputs = [
pytest-mock
pytestCheckHook
twine
] ++ lib.optionals (pythonOlder "3.11") [ tomli ];
disabledTests = [
# tests pip install, which unsuprisingly fails
"test_hatch_build"
];
meta = with lib; {
changelog = "https://github.com/jupyterlab/hatch-jupyter-builder/releases/tag/v${version}";
description = "hatch plugin to help build Jupyter packages";
mainProgram = "hatch-jupyter-builder";
homepage = "https://github.com/jupyterlab/hatch-jupyter-builder";
license = licenses.bsd3;
maintainers = [ ];
};
}