mnamer: init at 2.5.3

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