35 lines
735 B
Nix
35 lines
735 B
Nix
{ lib
|
|
, python3
|
|
, makeWrapper
|
|
}:
|
|
|
|
let
|
|
python = python3.withPackages (ps: [ ps.pycryptodome ]);
|
|
in
|
|
python3.pkgs.buildPythonApplication {
|
|
pname = "clicknload-proxy";
|
|
version = "1.0.0";
|
|
format = "other";
|
|
|
|
src = ./.;
|
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
|
|
propagatedBuildInputs = [ python3.pkgs.pycryptodome ];
|
|
|
|
installPhase = ''
|
|
mkdir -p $out/bin
|
|
cp clicknload-proxy.py $out/bin/clicknload-proxy
|
|
chmod +x $out/bin/clicknload-proxy
|
|
|
|
wrapProgram $out/bin/clicknload-proxy \
|
|
--prefix PYTHONPATH : "${python}/${python.sitePackages}"
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Click'n'Load proxy that forwards links to pyLoad";
|
|
license = licenses.mit;
|
|
mainProgram = "clicknload-proxy";
|
|
};
|
|
}
|