diff --git a/pkgs/development/python-modules/session-info2/default.nix b/pkgs/development/python-modules/session-info2/default.nix new file mode 100644 index 000000000000..25aaea957785 --- /dev/null +++ b/pkgs/development/python-modules/session-info2/default.nix @@ -0,0 +1,58 @@ +{ + lib, + buildPythonPackage, + fetchFromGitHub, + hatch-docstring-description, + hatch-vcs, + hatchling, + coverage, + ipykernel, + jupyter-client, + pytestCheckHook, + pytest-asyncio, + pytest-subprocess, + testing-common-database, + writableTmpDirAsHomeHook, +}: + +buildPythonPackage rec { + pname = "session-info2"; + version = "0.2"; + pyproject = true; + + src = fetchFromGitHub { + owner = "scverse"; + repo = "session-info2"; + tag = "v${version}"; + hash = "sha256-DsI2mFM7xZgSm24yVzF6B+2aruKsjkTKZAmJPg7mWgg="; + }; + + build-system = [ + hatch-docstring-description + hatch-vcs + hatchling + ]; + + nativeCheckInputs = [ + coverage + ipykernel + jupyter-client + pytestCheckHook + pytest-asyncio + pytest-subprocess + testing-common-database + writableTmpDirAsHomeHook + ]; + + pythonImportsCheck = [ + "session_info2" + ]; + + meta = { + description = "Report Python session information"; + homepage = "https://session-info2.readthedocs.io"; + changelog = "https://github.com/scverse/session-info2/releases/tag/${src.tag}"; + license = lib.licenses.mpl20; + maintainers = with lib.maintainers; [ bcdarwin ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 8dc9e021d2e5..2d406a3df7c9 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -16407,6 +16407,8 @@ self: super: with self; { service-identity = callPackage ../development/python-modules/service-identity { }; + session-info2 = callPackage ../development/python-modules/session-info2 { }; + setproctitle = callPackage ../development/python-modules/setproctitle { }; setupmeta = callPackage ../development/python-modules/setupmeta { };