svtplay-dl: 2.1 -> 2.2
Also remove no longer supported dependency on rtmpdump.
This commit is contained in:
parent
bb3f8ea9e2
commit
c09bc3e7e2
@ -1,27 +1,24 @@
|
|||||||
{ stdenv, fetchFromGitHub, makeWrapper, python3Packages, perl, zip
|
{ stdenv, fetchFromGitHub, makeWrapper, python3Packages, perl, zip
|
||||||
, rtmpdump, gitMinimal }:
|
, gitMinimal }:
|
||||||
|
|
||||||
let
|
let
|
||||||
inherit (python3Packages) python nose pycrypto pyyaml requests mock;
|
inherit (python3Packages) python nose pycrypto pyyaml requests mock;
|
||||||
in stdenv.mkDerivation rec {
|
in stdenv.mkDerivation rec {
|
||||||
name = "svtplay-dl-${version}";
|
name = "svtplay-dl-${version}";
|
||||||
version = "2.1";
|
version = "2.2";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "spaam";
|
owner = "spaam";
|
||||||
repo = "svtplay-dl";
|
repo = "svtplay-dl";
|
||||||
rev = version;
|
rev = version;
|
||||||
sha256 = "1cnc32gbhs955391hs1x1jpjsl3b6pqy7ysdydmp9q1i2rw105ln";
|
sha256 = "02yjz17x8dl5spn7mcbj1ji7vsyx0qwwa60zqyrdxpr03g1rnhdz";
|
||||||
};
|
};
|
||||||
|
|
||||||
pythonPaths = [ pycrypto pyyaml requests ];
|
pythonPaths = [ pycrypto pyyaml requests ];
|
||||||
buildInputs = [ python perl nose mock rtmpdump makeWrapper ] ++ pythonPaths;
|
buildInputs = [ python perl nose mock makeWrapper ] ++ pythonPaths;
|
||||||
nativeBuildInputs = [ gitMinimal zip ];
|
nativeBuildInputs = [ gitMinimal zip ];
|
||||||
|
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
substituteInPlace lib/svtplay_dl/fetcher/rtmp.py \
|
|
||||||
--replace '"rtmpdump"' '"${rtmpdump}/bin/rtmpdump"'
|
|
||||||
|
|
||||||
substituteInPlace scripts/run-tests.sh \
|
substituteInPlace scripts/run-tests.sh \
|
||||||
--replace 'PYTHONPATH=lib' 'PYTHONPATH=lib:$PYTHONPATH'
|
--replace 'PYTHONPATH=lib' 'PYTHONPATH=lib:$PYTHONPATH'
|
||||||
'';
|
'';
|
||||||
|
Loading…
x
Reference in New Issue
Block a user