Merge pull request #119035 from dotlambda/spotdl-3.5.1
This commit is contained in:
commit
c21f0a2653
@ -0,0 +1,45 @@
|
|||||||
|
{ lib
|
||||||
|
, buildPythonPackage
|
||||||
|
, pythonOlder
|
||||||
|
, fetchFromGitHub
|
||||||
|
, pytest
|
||||||
|
, pytestCheckHook
|
||||||
|
, docutils
|
||||||
|
, pygments
|
||||||
|
}:
|
||||||
|
|
||||||
|
buildPythonPackage rec {
|
||||||
|
pname = "pytest-subprocess";
|
||||||
|
version = "1.0.1";
|
||||||
|
|
||||||
|
disabled = pythonOlder "3.4";
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "aklajnert";
|
||||||
|
repo = "pytest-subprocess";
|
||||||
|
rev = version;
|
||||||
|
sha256 = "16ghwyv1vy45dd9cysjvcvvpm45958x071id2qrvgaziy2j6yx3j";
|
||||||
|
};
|
||||||
|
|
||||||
|
buildInputs = [
|
||||||
|
pytest
|
||||||
|
];
|
||||||
|
|
||||||
|
checkInputs = [
|
||||||
|
pytestCheckHook
|
||||||
|
docutils
|
||||||
|
pygments
|
||||||
|
];
|
||||||
|
|
||||||
|
disabledTests = [
|
||||||
|
"test_multiple_wait" # https://github.com/aklajnert/pytest-subprocess/issues/36
|
||||||
|
];
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
|
description = "A plugin to fake subprocess for pytest";
|
||||||
|
homepage = "https://github.com/aklajnert/pytest-subprocess";
|
||||||
|
changelog = "https://github.com/aklajnert/pytest-subprocess/blob/${version}/HISTORY.rst";
|
||||||
|
license = licenses.mit;
|
||||||
|
maintainers = with maintainers; [ dotlambda ];
|
||||||
|
};
|
||||||
|
}
|
@ -1,20 +1,30 @@
|
|||||||
{ lib
|
{ lib
|
||||||
, python3
|
, python3
|
||||||
, fetchFromGitHub
|
, fetchFromGitHub
|
||||||
|
, fetchpatch
|
||||||
, ffmpeg
|
, ffmpeg
|
||||||
}:
|
}:
|
||||||
|
|
||||||
python3.pkgs.buildPythonApplication rec {
|
python3.pkgs.buildPythonApplication rec {
|
||||||
pname = "spotdl";
|
pname = "spotdl";
|
||||||
version = "3.5.0";
|
version = "3.5.1";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "spotDL";
|
owner = "spotDL";
|
||||||
repo = "spotify-downloader";
|
repo = "spotify-downloader";
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
sha256 = "1nxf911hi578jw24hlcvyy33z1pkvr41pfrywbs3157rj1fj2vfi";
|
sha256 = "sha256-Mc0aODyt0rwmBhkvY/gH1ODz4k8LOxyU5xXglSb6sPs=";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
patches = [
|
||||||
|
# https://github.com/spotDL/spotify-downloader/pull/1254
|
||||||
|
(fetchpatch {
|
||||||
|
name = "subprocess-dont-use-shell.patch";
|
||||||
|
url = "https://github.com/spotDL/spotify-downloader/commit/fe9848518900577776b463ef0798796201e226ac.patch";
|
||||||
|
sha256 = "1kqq3y31dcx1zglywr564hkd2px3qx6sk3rkg7yz8n5hnfjhp6fn";
|
||||||
|
})
|
||||||
|
];
|
||||||
|
|
||||||
propagatedBuildInputs = with python3.pkgs; [
|
propagatedBuildInputs = with python3.pkgs; [
|
||||||
spotipy
|
spotipy
|
||||||
pytube
|
pytube
|
||||||
@ -32,6 +42,7 @@ python3.pkgs.buildPythonApplication rec {
|
|||||||
pytest-mock
|
pytest-mock
|
||||||
pytest-vcr
|
pytest-vcr
|
||||||
pyfakefs
|
pyfakefs
|
||||||
|
pytest-subprocess
|
||||||
];
|
];
|
||||||
|
|
||||||
makeWrapperArgs = [
|
makeWrapperArgs = [
|
||||||
|
@ -5226,6 +5226,8 @@ in {
|
|||||||
|
|
||||||
pyshark = callPackage ../development/python-modules/pyshark { };
|
pyshark = callPackage ../development/python-modules/pyshark { };
|
||||||
|
|
||||||
|
pytest-subprocess = callPackage ../development/python-modules/pytest-subprocess { };
|
||||||
|
|
||||||
python-codon-tables = callPackage ../development/python-modules/python-codon-tables { };
|
python-codon-tables = callPackage ../development/python-modules/python-codon-tables { };
|
||||||
|
|
||||||
python-csxcad = callPackage ../development/python-modules/python-csxcad { };
|
python-csxcad = callPackage ../development/python-modules/python-csxcad { };
|
||||||
|
Loading…
x
Reference in New Issue
Block a user