Merge pull request #131298 from dali99/add_to_hydrus_maintainer

hydrus: Update and improve package

authored by Sandro and committed by GitHub fbf61871 3f149700

+52 -28
+27 -27
pkgs/applications/graphics/hydrus/default.nix
··· 1 1 { lib 2 2 , fetchFromGitHub 3 - , xz 4 3 , wrapQtAppsHook 5 4 , miniupnpc_2 5 + , ffmpeg 6 6 , enableSwftools ? false 7 7 , swftools 8 - , pythonPackages 8 + , python3Packages 9 9 }: 10 10 11 - pythonPackages.buildPythonPackage rec { 11 + python3Packages.buildPythonPackage rec { 12 12 pname = "hydrus"; 13 - version = "441"; 13 + version = "447"; 14 14 format = "other"; 15 15 16 16 src = fetchFromGitHub { 17 17 owner = "hydrusnetwork"; 18 18 repo = "hydrus"; 19 19 rev = "v${version}"; 20 - sha256 = "13h4qcz0iqba4mwyvgmdqh99jy22x7kw20f3g43b5aq3qyk9ca2h"; 20 + sha256 = "0a9nrsbw3w1229bm90xayixvkpvr6g338w64x4v75sqxvpbx84lz"; 21 21 }; 22 22 23 23 nativeBuildInputs = [ 24 24 wrapQtAppsHook 25 25 ]; 26 26 27 - propagatedBuildInputs = with pythonPackages; [ 27 + propagatedBuildInputs = with python3Packages; [ 28 28 beautifulsoup4 29 + chardet 30 + cloudscraper 29 31 html5lib 30 32 lxml 33 + lz4 34 + nose 31 35 numpy 32 36 opencv4 33 37 pillow 34 38 psutil 39 + pylzma 35 40 pyopenssl 41 + pyside2 42 + pysocks 43 + pythonPackages.mpv 36 44 pyyaml 45 + qtpy 37 46 requests 38 47 send2trash 39 48 service-identity 49 + six 40 50 twisted 41 - lz4 42 - xz 43 - pysocks 44 - matplotlib 45 - qtpy 46 - pyside2 47 - mpv 48 51 ]; 49 52 50 - checkInputs = with pythonPackages; [ nose httmock ]; 53 + checkInputs = with python3Packages; [ nose mock httmock ]; 51 54 52 55 # most tests are failing, presumably because we are not using test.py 53 56 checkPhase = '' ··· 76 79 ''; 77 80 78 81 outputs = [ "out" "doc" ]; 79 - 80 - postPatch = '' 81 - sed 's;os\.path\.join(\sHC\.BIN_DIR,.*;"${miniupnpc_2}/bin/upnpc";' \ 82 - -i ./hydrus/core/networking/HydrusNATPunch.py 83 - '' + lib.optionalString enableSwftools '' 84 - sed 's;os\.path\.join(\sHC\.BIN_DIR,.*;"${swftools}/bin/swfrender";' \ 85 - -i ./hydrus/core/HydrusFlashHandling.py 86 - ''; 87 - 88 - #doCheck = true; 89 82 90 83 installPhase = '' 91 84 # Move the hydrus module and related directories 92 - mkdir -p $out/${pythonPackages.python.sitePackages} 93 - mv {hydrus,static} $out/${pythonPackages.python.sitePackages} 85 + mkdir -p $out/${python3Packages.python.sitePackages} 86 + mv {hydrus,static} $out/${python3Packages.python.sitePackages} 94 87 mv help $out/doc/ 95 88 96 89 # install the hydrus binaries 97 90 mkdir -p $out/bin 98 91 install -m0755 server.py $out/bin/hydrus-server 99 92 install -m0755 client.py $out/bin/hydrus-client 93 + '' + lib.optionalString enableSwftools '' 94 + mkdir -p $out/${python3Packages.python.sitePackages}/bin 95 + # swfrender seems to have to be called sfwrender_linux 96 + # not sure if it can be loaded through PATH, but this is simpler 97 + # $out/python3Packages.python.sitePackages/bin is correct NOT .../hydrus/bin 98 + ln -s ${swftools}/bin/swfrender $out/${python3Packages.python.sitePackages}/bin/swfrender_linux 100 99 ''; 101 100 102 101 dontWrapQtApps = true; 103 102 preFixup = '' 104 103 makeWrapperArgs+=("''${qtWrapperArgs[@]}") 104 + makeWrapperArgs+=(--prefix PATH : ${lib.makeBinPath [ ffmpeg miniupnpc_2 ]}) 105 105 ''; 106 106 107 107 meta = with lib; { 108 108 description = "Danbooru-like image tagging and searching system for the desktop"; 109 109 license = licenses.wtfpl; 110 110 homepage = "https://hydrusnetwork.github.io/hydrus/"; 111 - maintainers = [ maintainers.evanjs ]; 111 + maintainers = with maintainers; [ dandellion evanjs ]; 112 112 }; 113 113 }
+23
pkgs/development/python-modules/pylzma/default.nix
··· 1 + { lib, buildPythonPackage, fetchPypi }: 2 + 3 + buildPythonPackage rec { 4 + pname = "pylzma"; 5 + version = "0.5.0"; 6 + 7 + # This vendors an old LZMA SDK 8 + # After some discussion, it seemed most reasonable to keep it that way 9 + # xz, and uefi-firmware-parser also does this 10 + src = fetchPypi { 11 + inherit pname version; 12 + sha256 = "074anvhyjgsv2iby2ql1ixfvjgmhnvcwjbdz8gk70xzkzcm1fx5q"; 13 + }; 14 + 15 + pythonImportsCheck = [ "pylzma" ]; 16 + 17 + meta = with lib; { 18 + homepage = "https://www.joachim-bauch.de/projects/pylzma/"; 19 + description = "Platform independent python bindings for the LZMA compression library"; 20 + license = licenses.lgpl21Only; 21 + maintainers = with maintainers; [ dandellion ]; 22 + }; 23 + }
-1
pkgs/tools/video/swftools/default.nix
··· 19 19 license = licenses.gpl2Only; 20 20 maintainers = [ maintainers.koral ]; 21 21 platforms = lib.platforms.unix; 22 - broken = true; 23 22 knownVulnerabilities = [ 24 23 "CVE-2017-10976" 25 24 "CVE-2017-11096"
+2
pkgs/top-level/python-packages.nix
··· 6215 6215 6216 6216 pylxd = callPackage ../development/python-modules/pylxd { }; 6217 6217 6218 + pylzma = callPackage ../development/python-modules/pylzma { }; 6219 + 6218 6220 pymacaroons = callPackage ../development/python-modules/pymacaroons { }; 6219 6221 6220 6222 pymaging = callPackage ../development/python-modules/pymaging { };