tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
mnamer: init at 2.5.3
urlordjames
4 years ago
0ef6841a
4711f4b6
+82
4 changed files
expand all
collapse all
unified
split
pkgs
applications
misc
mnamer
default.nix
remove_requirements.patch
update_hack.patch
top-level
all-packages.nix
+46
pkgs/applications/misc/mnamer/default.nix
···
1
1
+
{ python3Packages, fetchFromGitHub, lib }:
2
2
+
3
3
+
python3Packages.buildPythonApplication rec {
4
4
+
pname = "mnamer";
5
5
+
version = "2.5.3";
6
6
+
7
7
+
src = fetchFromGitHub {
8
8
+
owner = "jkwill87";
9
9
+
repo = "mnamer";
10
10
+
rev = version;
11
11
+
sha256 = "1frrvfhp85fh82yw9yb6n61by8qp1v7f3c0f623njxk1afawhccd";
12
12
+
};
13
13
+
14
14
+
propagatedBuildInputs = with python3Packages; [
15
15
+
babelfish
16
16
+
requests
17
17
+
appdirs
18
18
+
teletype
19
19
+
requests-cache
20
20
+
guessit
21
21
+
];
22
22
+
23
23
+
patches = [
24
24
+
# requires specific old versions of dependencies which have been updated in nixpkgs
25
25
+
./remove_requirements.patch
26
26
+
27
27
+
# author reads a private property that changed between versions
28
28
+
./update_hack.patch
29
29
+
];
30
30
+
31
31
+
checkInputs = [ python3Packages.pytestCheckHook ];
32
32
+
33
33
+
# disable test that fail (networking, etc)
34
34
+
disabledTests = [
35
35
+
"network"
36
36
+
"e2e"
37
37
+
"test_utils.py"
38
38
+
];
39
39
+
40
40
+
meta = with lib; {
41
41
+
homepage = "https://github.com/jkwill87/mnamer";
42
42
+
description = "An intelligent and highly configurable media organization utility";
43
43
+
license = licenses.mit;
44
44
+
maintainers = with maintainers; [ urlordjames ];
45
45
+
};
46
46
+
}
+21
pkgs/applications/misc/mnamer/remove_requirements.patch
···
1
1
+
diff --git a/setup.py b/setup.py
2
2
+
index 245c1dd..fdc17ab 100755
3
3
+
--- a/setup.py
4
4
+
+++ b/setup.py
5
5
+
@@ -7,16 +7,12 @@ from mnamer.__version__ import VERSION
6
6
+
with open("readme.md", "r", encoding="utf8") as fp:
7
7
+
LONG_DESCRIPTION = fp.read()
8
8
+
9
9
+
-with open("requirements.txt", "r", encoding="utf8") as fp:
10
10
+
- REQUIREMENTS = fp.read().splitlines()
11
11
+
-
12
12
+
setup(
13
13
+
author="Jessy Williams",
14
14
+
author_email="jessy@jessywilliams.com",
15
15
+
description="A media file organiser",
16
16
+
entry_points={"console_scripts": ["mnamer=mnamer.__main__:main"]},
17
17
+
include_package_data=True,
18
18
+
- install_requires=REQUIREMENTS,
19
19
+
license="MIT",
20
20
+
long_description=LONG_DESCRIPTION,
21
21
+
long_description_content_type="text/markdown",
+13
pkgs/applications/misc/mnamer/update_hack.patch
···
1
1
+
diff --git a/mnamer/utils.py b/mnamer/utils.py
2
2
+
index 636b596..e52bd37 100644
3
3
+
--- a/mnamer/utils.py
4
4
+
+++ b/mnamer/utils.py
5
5
+
@@ -280,7 +280,7 @@ def request_json(
6
6
+
"like Gecko) Chrome/79.0.3945.88 Safari/537.36"
7
7
+
)
8
8
+
9
9
+
- initial_cache_state = session._is_cache_disabled # yes, i'm a bad person
10
10
+
+ initial_cache_state = session._disabled # yes, i'm a bad person
11
11
+
try:
12
12
+
session._is_cache_disabled = not cache
13
13
+
response = session.request(
+2
pkgs/top-level/all-packages.nix
···
25662
25662
25663
25663
mmtc = callPackage ../applications/audio/mmtc { };
25664
25664
25665
25665
+
mnamer = callPackage ../applications/misc/mnamer { };
25666
25666
+
25665
25667
moc = callPackage ../applications/audio/moc { };
25666
25668
25667
25669
mod-distortion = callPackage ../applications/audio/mod-distortion { };