Merge pull request #238052 from fabaff/loguru-bump

python311Packages.loguru: unstable-2023-01-20 -> 0.7.0
This commit is contained in:
Mario Rodas
2023-06-16 18:03:42 -05:00
committed by GitHub
2 changed files with 13 additions and 13 deletions
@@ -1,13 +1,14 @@
{ 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 = [
@@ -1,6 +1,5 @@
{ 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 ];
};