Merge pull request #213094 from austinbutler/loguru-python311
pythonPackages.notify-py: 0.3.39 -> 0.3.42
This commit is contained in:
commit
45e5242a5c
2 changed files with 16 additions and 22 deletions
|
@ -4,31 +4,29 @@
|
|||
, buildPythonPackage
|
||||
, colorama
|
||||
, fetchpatch
|
||||
, fetchPypi
|
||||
, fetchFromGitHub
|
||||
, freezegun
|
||||
, mypy
|
||||
, pytestCheckHook
|
||||
, pythonOlder
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "loguru";
|
||||
version = "0.6.0";
|
||||
# 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";
|
||||
format = "setuptools";
|
||||
|
||||
disabled = pythonOlder "3.5";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "sha256-BmvQZ1jQpRPpg2/ZxrWnW/s/02hB9LmWvGC1R6MJ1Bw=";
|
||||
src = fetchFromGitHub {
|
||||
owner = "Delgan";
|
||||
repo = pname;
|
||||
rev = "07f94f3c8373733119f85aa8b9ca05ace3325a4b";
|
||||
hash = "sha256-lMGyQbBX3z6186ojs/iew7JMrG91ivPA679T9r+7xYw=";
|
||||
};
|
||||
|
||||
patches = [
|
||||
(fetchpatch {
|
||||
name = "fix-test-repr-infinite-recursion.patch";
|
||||
url = "https://github.com/Delgan/loguru/commit/4fe21f66991abeb1905e24c3bc3c634543d959a2.patch";
|
||||
hash = "sha256-NUOkgUS28TOazO0txMinFtaKwsi/J1Y7kqjjvMRCnR8=";
|
||||
})
|
||||
];
|
||||
|
||||
propagatedBuildInputs = lib.optionals (pythonOlder "3.7") [
|
||||
aiocontextvars
|
||||
];
|
||||
|
@ -36,19 +34,15 @@ buildPythonPackage rec {
|
|||
nativeCheckInputs = [
|
||||
pytestCheckHook
|
||||
colorama
|
||||
freezegun
|
||||
mypy
|
||||
];
|
||||
|
||||
disabledTestPaths = lib.optionals stdenv.isDarwin [
|
||||
"tests/test_multiprocessing.py"
|
||||
];
|
||||
|
||||
disabledTests = [
|
||||
"test_time_rotation_reopening"
|
||||
"test_file_buffering"
|
||||
# Tests are failing with Python 3.10
|
||||
"test_exception_others"
|
||||
""
|
||||
] ++ lib.optionals stdenv.isDarwin [
|
||||
disabledTests = lib.optionals stdenv.isDarwin [
|
||||
"test_rotation_and_retention"
|
||||
"test_rotation_and_retention_timed_file"
|
||||
"test_renaming"
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
|
||||
buildPythonPackage rec {
|
||||
pname = "notify-py";
|
||||
version = "0.3.39";
|
||||
version = "0.3.42";
|
||||
format = "pyproject";
|
||||
|
||||
disabled = pythonOlder "3.6";
|
||||
|
@ -27,7 +27,7 @@ buildPythonPackage rec {
|
|||
owner = "ms7m";
|
||||
repo = pname;
|
||||
rev = "refs/tags/v${version}";
|
||||
hash = "sha256-QIK5MCCOsD8SStoh7TRw+l9k28SjChwV2J/T7gMKnAs=";
|
||||
hash = "sha256-XtjJImH9UwPPZS/Yqs8S5xGXOLBRmJRawzxWXoPWvrM=";
|
||||
};
|
||||
|
||||
patches = lib.optionals stdenv.isLinux [
|
||||
|
|
Loading…
Reference in a new issue