couchpotato: init at 3.0.1
This commit is contained in:
parent
28093e42ec
commit
ef0f4e7092
43
pkgs/servers/couchpotato/default.nix
Normal file
43
pkgs/servers/couchpotato/default.nix
Normal file
@ -0,0 +1,43 @@
|
||||
{ fetchurl, pythonPackages, lib }:
|
||||
|
||||
with pythonPackages;
|
||||
|
||||
buildPythonApplication rec {
|
||||
name = "couchpotato-${version}";
|
||||
version = "3.0.1";
|
||||
disabled = isPy3k;
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://github.com/CouchPotato/CouchPotatoServer/archive/build/${version}.tar.gz";
|
||||
sha256 = "1xwjis3ijh1rff32mpdsphmsclf0lkpd3phpgxkccrigq1m9r3zh";
|
||||
};
|
||||
|
||||
format = "other";
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace CouchPotato.py --replace "dirname(os.path.abspath(__file__))" "os.path.join(dirname(os.path.abspath(__file__)), '../${python.sitePackages}')"
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out/bin/
|
||||
mkdir -p $out/${python.sitePackages}/
|
||||
|
||||
cp -r libs/* $out/${python.sitePackages}/
|
||||
cp -r couchpotato $out/${python.sitePackages}/
|
||||
|
||||
cp CouchPotato.py $out/bin/couchpotato
|
||||
chmod +x $out/bin/*
|
||||
'';
|
||||
|
||||
fixupPhase = ''
|
||||
wrapProgram "$out/bin/couchpotato" --set PYTHONPATH "$PYTHONPATH:$out/${python.sitePackages}" \
|
||||
--set PATH ${python}/bin
|
||||
'';
|
||||
|
||||
meta = {
|
||||
description = "Automatic movie downloading via NZBs and torrents";
|
||||
license = lib.licenses.gpl3;
|
||||
homepage = https://couchpota.to/;
|
||||
maintainers = with lib.maintainers; [ fadenb ];
|
||||
};
|
||||
}
|
@ -10222,6 +10222,8 @@ in
|
||||
erlang = erlangR16;
|
||||
};
|
||||
|
||||
couchpotato = callPackage ../servers/couchpotato {};
|
||||
|
||||
dico = callPackage ../servers/dico { };
|
||||
|
||||
dict = callPackage ../servers/dict {
|
||||
|
Loading…
Reference in New Issue
Block a user