From 16a58c887a5f07eb8787b077d683d3bcd6abdbb3 Mon Sep 17 00:00:00 2001 From: Gaetan Lepage Date: Sun, 1 Mar 2026 23:31:37 +0000 Subject: [PATCH] python3Packages.choreographer: init at 1.2.1 --- .../python-modules/choreographer/default.nix | 53 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 55 insertions(+) create mode 100644 pkgs/development/python-modules/choreographer/default.nix diff --git a/pkgs/development/python-modules/choreographer/default.nix b/pkgs/development/python-modules/choreographer/default.nix new file mode 100644 index 000000000000..53ecaaf6fa2d --- /dev/null +++ b/pkgs/development/python-modules/choreographer/default.nix @@ -0,0 +1,53 @@ +{ + lib, + buildPythonPackage, + fetchFromGitHub, + + # build-system + setuptools, + + # dependencies + logistro, + simplejson, +}: + +buildPythonPackage (finalAttrs: { + pname = "choreographer"; + version = "1.2.1"; + pyproject = true; + + src = fetchFromGitHub { + owner = "plotly"; + repo = "choreographer"; + tag = "v${finalAttrs.version}"; + hash = "sha256-WjAE3UlUCiXK5DxwmZvehQQaoJRkgEE8rNJQdAyOM4Q="; + }; + + postPatch = '' + substituteInPlace pyproject.toml \ + --replace-fail ', "setuptools-git-versioning"' "" \ + --replace-fail 'dynamic = ["version"]' 'version = "${finalAttrs.version}"' + ''; + + build-system = [ + setuptools + ]; + + dependencies = [ + logistro + simplejson + ]; + + pythonImportsCheck = [ "choreographer" ]; + + # Tests require running chrome + doCheck = false; + + meta = { + description = "Devtools Protocol implementation for chrome"; + homepage = "https://github.com/plotly/choreographer"; + changelog = "https://github.com/plotly/choreographer/blob/${finalAttrs.src.tag}/CHANGELOG.txt"; + license = lib.licenses.mit; + maintainers = with lib.maintainers; [ GaetanLepage ]; + }; +}) diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 914243788dc5..12ba390f807e 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -2693,6 +2693,8 @@ self: super: with self; { chispa = callPackage ../development/python-modules/chispa { }; + choreographer = callPackage ../development/python-modules/choreographer { }; + chroma-hnswlib = callPackage ../development/python-modules/chroma-hnswlib { }; chromadb = callPackage ../development/python-modules/chromadb { zstd-c = pkgs.zstd; };