3
0
Fork 0
forked from mirrors/nixpkgs

Merge pull request #125257 from mingmingrr/master

pythonPackages.hydrus: 438 -> 441
This commit is contained in:
Sandro 2021-06-03 17:34:21 +02:00 committed by GitHub
commit ee91003786
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -3,20 +3,21 @@
, xz
, wrapQtAppsHook
, miniupnpc_2
, enableSwftools ? false
, swftools
, pythonPackages
}:
pythonPackages.buildPythonPackage rec {
pname = "hydrus";
version = "438";
version = "441";
format = "other";
src = fetchFromGitHub {
owner = "hydrusnetwork";
repo = "hydrus";
rev = "v${version}";
sha256 = "sha256-iBJkbVUlsjt26SbDe92eIrWKQwWBhkjjeLM14Pm/obc=";
sha256 = "13h4qcz0iqba4mwyvgmdqh99jy22x7kw20f3g43b5aq3qyk9ca2h";
};
nativeBuildInputs = [
@ -79,7 +80,7 @@ pythonPackages.buildPythonPackage rec {
postPatch = ''
sed 's;os\.path\.join(\sHC\.BIN_DIR,.*;"${miniupnpc_2}/bin/upnpc";' \
-i ./hydrus/core/networking/HydrusNATPunch.py
'' + lib.optionalString enableSwftools ''
sed 's;os\.path\.join(\sHC\.BIN_DIR,.*;"${swftools}/bin/swfrender";' \
-i ./hydrus/core/HydrusFlashHandling.py
'';