nixos/doh-server: init
[NixPkgs.git] / pkgs / development / python-modules / hatch-jupyter-builder / default.nix
blob7a070285d382aab2dfd49e1485bb20fc8312069c
2   lib,
3   buildPythonPackage,
4   fetchFromGitHub,
5   hatchling,
6   pytest-mock,
7   pytestCheckHook,
8   tomli,
9   twine,
10   pythonOlder,
13 buildPythonPackage rec {
14   pname = "hatch-jupyter-builder";
15   version = "0.9.1";
16   pyproject = true;
18   src = fetchFromGitHub {
19     owner = "jupyterlab";
20     repo = "hatch-jupyter-builder";
21     rev = "refs/tags/v${version}";
22     hash = "sha256-QDWHVdjtexUNGRL+dVehdBwahSW2HmNkZKkQyuOghyI=";
23   };
25   build-system = [ hatchling ];
27   dependencies = [ hatchling ];
29   nativeCheckInputs = [
30     pytest-mock
31     pytestCheckHook
32     twine
33   ] ++ lib.optionals (pythonOlder "3.11") [ tomli ];
35   disabledTests = [
36     # tests pip install, which unsuprisingly fails
37     "test_hatch_build"
38   ];
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   };