svtplay-dl: 2.4 -> 2.6

This commit is contained in:
Robert Helgesson 2020-10-03 22:34:03 +02:00
parent 0794fb0419
commit 579dfc56ac
No known key found for this signature in database
GPG key ID: 36BDAA14C2797E89

View file

@ -8,13 +8,13 @@ let
in stdenv.mkDerivation rec {
pname = "svtplay-dl";
version = "2.4";
version = "2.6";
src = fetchFromGitHub {
owner = "spaam";
repo = "svtplay-dl";
rev = version;
sha256 = "146ss7pzh61yw84crk6hzfxkfdnf6bq07m11b6lgsw4hsn71g59w";
sha256 = "1d969ig4w6irx5822crhpab2f53svpiyf1vfx87irapy309dqy2y";
};
pythonPaths = [ pycrypto pyyaml requests ];
@ -24,6 +24,9 @@ in stdenv.mkDerivation rec {
postPatch = ''
substituteInPlace scripts/run-tests.sh \
--replace 'PYTHONPATH=lib' 'PYTHONPATH=lib:$PYTHONPATH'
sed -i '/def test_sublang2\?(/ i\ @unittest.skip("accesses network")' \
lib/svtplay_dl/tests/test_postprocess.py
'';
makeFlags = [ "PREFIX=$(out)" "SYSCONFDIR=$(out)/etc" "PYTHON=${python.interpreter}" ];