1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4, hatchling
5, pytest-mock
6, pytestCheckHook
7, tomli
8, twine
9}:
10
11buildPythonPackage rec {
12 pname = "hatch-jupyter-builder";
13 version = "0.8.2";
14 format = "pyproject";
15
16 src = fetchFromGitHub {
17 owner = "jupyterlab";
18 repo = "hatch-jupyter-builder";
19 rev = "refs/tags/v${version}";
20 hash = "sha256-Ns5jrVfTAA7NuvUok3/13nIpXSSVZ6WRkgHyTuxkSKA=";
21 };
22
23 nativeBuildInputs = [
24 hatchling
25 ];
26
27 nativeCheckInputs = [
28 pytest-mock
29 pytestCheckHook
30 tomli
31 twine
32 ];
33
34 disabledTests = [
35 # tests pip install, which unsuprisingly fails
36 "test_hatch_build"
37 ];
38
39 meta = with lib; {
40 changelog = "https://github.com/jupyterlab/hatch-jupyter-builder/releases/tag/v${version}";
41 description = "hatch plugin to help build Jupyter packages";
42 homepage = "https://github.com/jupyterlab/hatch-jupyter-builder";
43 license = licenses.bsd3;
44 maintainers = with maintainers; [ ];
45 };
46}