python312Packages.flask-allowed-hosts: 1.1.2 -> 1.2.0 (#361132)
[NixPkgs.git] / pkgs / development / python-modules / jupyter-events / default.nix
blob6a5431fd1abf989bdf9e51fd62438b45cfc81c6b
2   lib,
3   buildPythonPackage,
4   fetchFromGitHub,
5   pythonOlder,
7   # build
8   hatchling,
10   # runtime
11   jsonschema,
12   python-json-logger,
13   pyyaml,
14   referencing,
15   traitlets,
17   # optionals
18   click,
19   rich,
21   # tests
22   pytest-asyncio,
23   pytest-console-scripts,
24   pytestCheckHook,
27 buildPythonPackage rec {
28   pname = "jupyter-events";
29   version = "0.10.0";
30   pyproject = true;
32   disabled = pythonOlder "3.8";
34   src = fetchFromGitHub {
35     owner = "jupyter";
36     repo = "jupyter_events";
37     rev = "refs/tags/v${version}";
38     hash = "sha256-8aps8aNgXw+XbDgtCvWw+Ij1Cm1N0G+wcL35ySkofOk=";
39   };
41   nativeBuildInputs = [ hatchling ];
43   propagatedBuildInputs = [
44     jsonschema
45     python-json-logger
46     pyyaml
47     referencing
48     traitlets
49   ] ++ jsonschema.optional-dependencies.format-nongpl;
51   optional-dependencies = {
52     cli = [
53       click
54       rich
55     ];
56   };
58   nativeCheckInputs = [
59     pytest-asyncio
60     pytest-console-scripts
61     pytestCheckHook
62   ] ++ lib.flatten (builtins.attrValues optional-dependencies);
64   preCheck = ''
65     export PATH="$out/bin:$PATH"
66   '';
68   pythonImportsCheck = [ "jupyter_events" ];
70   meta = with lib; {
71     changelog = "https://github.com/jupyter/jupyter_events/releases/tag/v${version}";
72     description = "Configurable event system for Jupyter applications and extensions";
73     mainProgram = "jupyter-events";
74     homepage = "https://github.com/jupyter/jupyter_events";
75     license = licenses.bsd3;
76     maintainers = [ ];
77   };