Files
nixpkgs/pkgs/development/python-modules/hatch-jupyter-builder/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

50 lines
1.0 KiB
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
hatchling,
pytest-mock,
pytestCheckHook,
tomli,
twine,
pythonOlder,
}:
buildPythonPackage rec {
pname = "hatch-jupyter-builder";
version = "0.9.1";
pyproject = true;
src = fetchFromGitHub {
owner = "jupyterlab";
repo = "hatch-jupyter-builder";
rev = "refs/tags/v${version}";
hash = "sha256-QDWHVdjtexUNGRL+dVehdBwahSW2HmNkZKkQyuOghyI=";
};
build-system = [ hatchling ];
dependencies = [ hatchling ];
nativeCheckInputs = [
pytest-mock
pytestCheckHook
twine
]
++ lib.optionals (pythonOlder "3.11") [ tomli ];
disabledTests = [
# tests pip install, which unsurprisingly fails
"test_hatch_build"
];
meta = {
changelog = "https://github.com/jupyterlab/hatch-jupyter-builder/releases/tag/v${version}";
description = "Hatch plugin to help build Jupyter packages";
mainProgram = "hatch-jupyter-builder";
homepage = "https://github.com/jupyterlab/hatch-jupyter-builder";
license = lib.licenses.bsd3;
maintainers = [ ];
};
}