mnamer: 2.5.4 -> 2.5.5 (#357983)
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
From 94ea94de526770e783d04d75b981dfa3ac90fd20 Mon Sep 17 00:00:00 2001
|
||||
From: o7-machienhum <ryan.cjw@gmail.com>
|
||||
Date: Tue, 30 Jan 2024 03:29:09 -0800
|
||||
Subject: [PATCH] Fixes crash
|
||||
|
||||
---
|
||||
mnamer/utils.py | 3 ---
|
||||
1 file changed, 3 deletions(-)
|
||||
|
||||
diff --git a/mnamer/utils.py b/mnamer/utils.py
|
||||
index 84df7870..8eba68f8 100644
|
||||
--- a/mnamer/utils.py
|
||||
+++ b/mnamer/utils.py
|
||||
@@ -256,7 +256,6 @@ def request_json(
|
||||
"like Gecko) Chrome/79.0.3945.88 Safari/537.36"
|
||||
)
|
||||
|
||||
- initial_cache_state = session._disabled # yes, i'm a bad person
|
||||
try:
|
||||
session._disabled = not cache
|
||||
response = session.request(
|
||||
@@ -272,8 +271,6 @@ def request_json(
|
||||
except:
|
||||
content = None
|
||||
status = 500
|
||||
- finally:
|
||||
- session._disabled = initial_cache_state
|
||||
return status, (content or {})
|
||||
@@ -1,31 +1,40 @@
|
||||
{ python3Packages, fetchFromGitHub, lib }:
|
||||
{
|
||||
python3Packages,
|
||||
fetchFromGitHub,
|
||||
lib,
|
||||
}:
|
||||
|
||||
python3Packages.buildPythonApplication rec {
|
||||
pname = "mnamer";
|
||||
version = "2.5.4";
|
||||
version = "2.5.5";
|
||||
format = "pyproject";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "jkwill87";
|
||||
repo = "mnamer";
|
||||
rev = version;
|
||||
sha256 = "sha256-fONQq/RboWHFuEFU7HP1ThUpSjOIlkg54c2WlMUKwuk=";
|
||||
tag = version;
|
||||
sha256 = "sha256-qQu5V1GOsbrR00HOrot6TTAkc3KRasBPDEU7ZojUBio=";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = with python3Packages; [
|
||||
babelfish
|
||||
requests
|
||||
appdirs
|
||||
teletype
|
||||
requests-cache
|
||||
guessit
|
||||
build-system = with python3Packages; [
|
||||
setuptools
|
||||
setuptools-scm
|
||||
];
|
||||
|
||||
patches = [
|
||||
# requires specific old versions of dependencies which have been updated in nixpkgs
|
||||
./remove_requirements.patch
|
||||
dependencies = with python3Packages; [
|
||||
appdirs
|
||||
babelfish
|
||||
guessit
|
||||
requests
|
||||
requests-cache
|
||||
teletype
|
||||
];
|
||||
|
||||
# author reads a private property that changed between versions
|
||||
./update_hack.patch
|
||||
pythonRelaxDeps = true;
|
||||
|
||||
patches = [
|
||||
# https://github.com/jkwill87/mnamer/pull/291
|
||||
./cached_session_error.patch
|
||||
];
|
||||
|
||||
nativeCheckInputs = [ python3Packages.pytestCheckHook ];
|
||||
|
||||
@@ -1,21 +0,0 @@
|
||||
diff --git a/setup.py b/setup.py
|
||||
index 245c1dd..fdc17ab 100755
|
||||
--- a/setup.py
|
||||
+++ b/setup.py
|
||||
@@ -7,16 +7,12 @@ from mnamer.__version__ import VERSION
|
||||
with open("readme.md", "r", encoding="utf8") as fp:
|
||||
LONG_DESCRIPTION = fp.read()
|
||||
|
||||
-with open("requirements.txt", "r", encoding="utf8") as fp:
|
||||
- REQUIREMENTS = fp.read().splitlines()
|
||||
-
|
||||
setup(
|
||||
author="Jessy Williams",
|
||||
author_email="jessy@jessywilliams.com",
|
||||
description="A media file organiser",
|
||||
entry_points={"console_scripts": ["mnamer=mnamer.__main__:main"]},
|
||||
include_package_data=True,
|
||||
- install_requires=REQUIREMENTS,
|
||||
license="MIT",
|
||||
long_description=LONG_DESCRIPTION,
|
||||
long_description_content_type="text/markdown",
|
||||
@@ -1,13 +0,0 @@
|
||||
diff --git a/mnamer/utils.py b/mnamer/utils.py
|
||||
index 636b596..e52bd37 100644
|
||||
--- a/mnamer/utils.py
|
||||
+++ b/mnamer/utils.py
|
||||
@@ -280,7 +280,7 @@ def request_json(
|
||||
"like Gecko) Chrome/79.0.3945.88 Safari/537.36"
|
||||
)
|
||||
|
||||
- initial_cache_state = session._is_cache_disabled # yes, i'm a bad person
|
||||
+ initial_cache_state = session._disabled # yes, i'm a bad person
|
||||
try:
|
||||
session._is_cache_disabled = not cache
|
||||
response = session.request(
|
||||
Reference in New Issue
Block a user