about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/hatch-jupyter-builder/default.nix
blob: fe641977812f4374eee5f8b54891b4bdcc18b9db (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
{ lib
, buildPythonPackage
, fetchFromGitHub
, hatchling
, pytest-mock
, pytestCheckHook
, tomli
, twine
}:

buildPythonPackage rec {
  pname = "hatch-jupyter-builder";
  version = "0.8.3";
  format = "pyproject";

  src = fetchFromGitHub {
    owner = "jupyterlab";
    repo = "hatch-jupyter-builder";
    rev = "refs/tags/v${version}";
    hash = "sha256-UywhFJ8d1+lSFOF5ECsknDeQuO7ppckdy5IqAT14ius=";
  };

  nativeBuildInputs = [
    hatchling
  ];

  nativeCheckInputs = [
    pytest-mock
    pytestCheckHook
    tomli
    twine
  ];

  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";
    homepage = "https://github.com/jupyterlab/hatch-jupyter-builder";
    license = licenses.bsd3;
    maintainers = with maintainers; [ ];
  };
}