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