Unverified Commit 713ac536 authored by kirillrdy's avatar kirillrdy Committed by GitHub
Browse files

python3Packages.logistro: init at 2.0.1, python3Packages.choreographer: init at 1.2.1 (#495647)

parents 77346a63 16a58c88
Loading
Loading
Loading
Loading
+53 −0
Original line number Diff line number Diff line
{
  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 ];
  };
})
+48 −0
Original line number Diff line number Diff line
{
  lib,
  buildPythonPackage,
  fetchFromGitHub,

  # build-system
  setuptools,

  # tests
  pytestCheckHook,
}:

buildPythonPackage (finalAttrs: {
  pname = "logistro";
  version = "2.0.1";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "geopozo";
    repo = "logistro";
    tag = "v${finalAttrs.version}";
    hash = "sha256-c/wHOXDPDUYvfJCcLodbHzFdXGscvXEmOyPKCuzPIT0=";
  };

  postPatch = ''
    substituteInPlace pyproject.toml \
      --replace-fail ', "setuptools-git-versioning"' "" \
      --replace-fail 'dynamic = ["version"]' 'version = "${finalAttrs.version}"'
  '';

  build-system = [
    setuptools
  ];

  pythonImportsCheck = [ "logistro" ];

  nativeCheckInputs = [
    pytestCheckHook
  ];

  meta = {
    description = "Wrapper for logging";
    homepage = "https://github.com/geopozo/logistro";
    changelog = "https://github.com/geopozo/logistro/blob/${finalAttrs.src.tag}/CHANGELOG.txt";
    license = lib.licenses.mit;
    maintainers = with lib.maintainers; [ GaetanLepage ];
  };
})
+4 −0
Original line number Diff line number Diff line
@@ -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; };
@@ -9239,6 +9241,8 @@ self: super: with self; {
  logilab-constraint = callPackage ../development/python-modules/logilab/constraint.nix { };
  logistro = callPackage ../development/python-modules/logistro { };
  logmatic-python = callPackage ../development/python-modules/logmatic-python { };
  logster = callPackage ../development/python-modules/logster { };