Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.5 kB · 83 lines
Nix
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384{ lib, buildPythonPackage, fetchFromGitHub,
# build hatchling,
# runtime jsonschema, packaging, python-json-logger, pyyaml, referencing, rfc3339-validator, rfc3986-validator, traitlets,
# optionals click, rich,
# tests pytest-asyncio, pytest-console-scripts, pytestCheckHook,}:
buildPythonPackage rec { pname = "jupyter-events"; version = "0.12.0"; pyproject = true;
src = fetchFromGitHub { owner = "jupyter"; repo = "jupyter_events"; tag = "v${version}"; hash = "sha256-l/u0XRP6mjqXywVzRXTWSm4E5a6o2oCdOBGGzLb85Ek="; };
build-system = [ hatchling ];
dependencies = [ jsonschema packaging python-json-logger pyyaml referencing rfc3339-validator rfc3986-validator traitlets ] ++ jsonschema.optional-dependencies.format-nongpl;
optional-dependencies = { cli = [ click rich ]; };
nativeCheckInputs = [ pytest-asyncio pytest-console-scripts pytestCheckHook ] ++ lib.flatten (builtins.attrValues optional-dependencies);
preCheck = '' export PATH="$out/bin:$PATH" '';
pythonImportsCheck = [ "jupyter_events" ];
meta = { changelog = "https://github.com/jupyter/jupyter_events/releases/tag/v${version}"; description = "Configurable event system for Jupyter applications and extensions"; mainProgram = "jupyter-events"; homepage = "https://github.com/jupyter/jupyter_events"; license = lib.licenses.bsd3; teams = [ lib.teams.jupyter ]; };}