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 ] ++ lib.optionals (pythonOlder "3.11") [ tomli ];
34
35 disabledTests = [
36 # tests pip install, which unsuprisingly fails
37 "test_hatch_build"
38 ];
39
40 meta = with lib; {
41 changelog = "https://github.com/jupyterlab/hatch-jupyter-builder/releases/tag/v${version}";
42 description = "hatch plugin to help build Jupyter packages";
43 mainProgram = "hatch-jupyter-builder";
44 homepage = "https://github.com/jupyterlab/hatch-jupyter-builder";
45 license = licenses.bsd3;
46 maintainers = [ ];
47 };
48}