pythonPackages.hydrus: 438 -> 441
This commit is contained in:
parent
0e4294fd3e
commit
03956aa12b
@ -3,20 +3,21 @@
|
|||||||
, xz
|
, xz
|
||||||
, wrapQtAppsHook
|
, wrapQtAppsHook
|
||||||
, miniupnpc_2
|
, miniupnpc_2
|
||||||
|
, enableSwftools ? false
|
||||||
, swftools
|
, swftools
|
||||||
, pythonPackages
|
, pythonPackages
|
||||||
}:
|
}:
|
||||||
|
|
||||||
pythonPackages.buildPythonPackage rec {
|
pythonPackages.buildPythonPackage rec {
|
||||||
pname = "hydrus";
|
pname = "hydrus";
|
||||||
version = "438";
|
version = "441";
|
||||||
format = "other";
|
format = "other";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "hydrusnetwork";
|
owner = "hydrusnetwork";
|
||||||
repo = "hydrus";
|
repo = "hydrus";
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
sha256 = "sha256-iBJkbVUlsjt26SbDe92eIrWKQwWBhkjjeLM14Pm/obc=";
|
sha256 = "13h4qcz0iqba4mwyvgmdqh99jy22x7kw20f3g43b5aq3qyk9ca2h";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
@ -79,7 +80,7 @@ pythonPackages.buildPythonPackage rec {
|
|||||||
postPatch = ''
|
postPatch = ''
|
||||||
sed 's;os\.path\.join(\sHC\.BIN_DIR,.*;"${miniupnpc_2}/bin/upnpc";' \
|
sed 's;os\.path\.join(\sHC\.BIN_DIR,.*;"${miniupnpc_2}/bin/upnpc";' \
|
||||||
-i ./hydrus/core/networking/HydrusNATPunch.py
|
-i ./hydrus/core/networking/HydrusNATPunch.py
|
||||||
|
'' + lib.optionalString enableSwftools ''
|
||||||
sed 's;os\.path\.join(\sHC\.BIN_DIR,.*;"${swftools}/bin/swfrender";' \
|
sed 's;os\.path\.join(\sHC\.BIN_DIR,.*;"${swftools}/bin/swfrender";' \
|
||||||
-i ./hydrus/core/HydrusFlashHandling.py
|
-i ./hydrus/core/HydrusFlashHandling.py
|
||||||
'';
|
'';
|
||||||
|
Loading…
Reference in New Issue
Block a user