Unverified Commit fd848767 authored by Mario Rodas's avatar Mario Rodas Committed by GitHub
Browse files

Merge pull request #238052 from fabaff/loguru-bump

python311Packages.loguru: unstable-2023-01-20 -> 0.7.0
parents ece37420 b333c3f1
Loading
Loading
Loading
Loading
+7 −1
Original line number Diff line number Diff line
{ lib
, buildPythonPackage
, dnspython
, deprecat
, dnspython
, fetchFromGitHub
, loguru
, passlib
, poetry-core
, pytestCheckHook
, pythonOlder
, pythonRelaxDepsHook
, toml
}:

@@ -25,12 +26,17 @@ buildPythonPackage rec {
    hash = "sha256-vL/CQdYcOP356EyRToviWylP1EBtxmeov6qkhfQNZ2Y=";
  };

  pythonRelaxDeps = [
    "loguru"
  ];

  postPatch = ''
    patchShebangs tests
  '';

  nativeBuildInputs = [
    poetry-core
    pythonRelaxDepsHook
  ];

  propagatedBuildInputs = [
+6 −12
Original line number Diff line number Diff line
{ lib
, stdenv
, aiocontextvars
, buildPythonPackage
, colorama
, fetchpatch
@@ -13,24 +12,18 @@

buildPythonPackage rec {
  pname = "loguru";
  # No release since Jan 2022, only master is compatible with Python 3.11
  # https://github.com/Delgan/loguru/issues/740
  version = "unstable-2023-01-20";
  version = "0.7.0";
  format = "setuptools";

  disabled = pythonOlder "3.5";
  disabled = pythonOlder "3.7";

  src = fetchFromGitHub {
    owner = "Delgan";
    repo = pname;
    rev = "07f94f3c8373733119f85aa8b9ca05ace3325a4b";
    hash = "sha256-lMGyQbBX3z6186ojs/iew7JMrG91ivPA679T9r+7xYw=";
    rev = "refs/tags/${version}";
    hash = "sha256-JwhJPX58KrPdX237L43o77spycLAVFv3K9njJiRK30Y=";
  };

  propagatedBuildInputs = lib.optionals (pythonOlder "3.7") [
    aiocontextvars
  ];

  nativeCheckInputs = [
    pytestCheckHook
    colorama
@@ -54,8 +47,9 @@ buildPythonPackage rec {
  ];

  meta = with lib; {
    homepage = "https://github.com/Delgan/loguru";
    description = "Python logging made (stupidly) simple";
    homepage = "https://github.com/Delgan/loguru";
    changelog = "https://github.com/delgan/loguru/releases/tag/${version}";
    license = licenses.mit;
    maintainers = with maintainers; [ jakewaksbaum rmcgibbo ];
  };