Merge pull request #243009 from dotlambda/spotdl-4.2.0

spotdl: 4.1.11 -> 4.2.0
This commit is contained in:
Sandro 2023-07-12 20:12:09 +02:00 committed by GitHub
commit 70c9ed6ede
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 53 additions and 2 deletions

View file

@ -0,0 +1,47 @@
{ lib
, buildPythonPackage
, fetchPypi
, beautifulsoup4
, demjson3
, html5lib
, lxml
, requests
}:
buildPythonPackage rec {
pname = "bandcamp-api";
version = "0.1.15";
format = "setuptools";
src = fetchPypi {
pname = "bandcamp_api";
inherit version;
hash = "sha256-4pnUiAsOLX1BBQjOhUkjSyHnGyQ3rx3JAFFYgEMLpG4=";
};
postPatch = ''
substituteInPlace setup.py \
--replace bs4 beautifulsoup4
'';
propagatedBuildInputs = [
beautifulsoup4
demjson3
html5lib
lxml
requests
];
pythonImportsCheck = [ "bandcamp_api" ];
# upstream has no tests
doCheck = false;
meta = {
description = "Obtains information from bandcamp.com";
homepage = "https://github.com/RustyRin/bandcamp-api";
license = lib.licenses.gpl3Only;
maintainers = with lib.maintainers; [ dotlambda ];
};
}

View file

@ -20,7 +20,7 @@ let
};
in python.pkgs.buildPythonApplication rec {
pname = "spotdl";
version = "4.1.11";
version = "4.2.0";
format = "pyproject";
@ -28,7 +28,7 @@ in python.pkgs.buildPythonApplication rec {
owner = "spotDL";
repo = "spotify-downloader";
rev = "refs/tags/v${version}";
hash = "sha256-I/53JapzTo6VXss82/F0qO/Etwd4i6ZP9FPjaFRHwV0=";
hash = "sha256-miIDasbOKmfYESiEIlMxEUfPkLLBz4s1rX2eMz3MrzA=";
};
nativeBuildInputs = with python.pkgs; [
@ -56,6 +56,8 @@ in python.pkgs.buildPythonApplication rec {
pykakasi
syncedlyrics
typing-extensions
soundcloud-v2
bandcamp-api
setuptools # for pkg_resources
] ++ python-slugify.optional-dependencies.unidecode;

View file

@ -1215,6 +1215,8 @@ self: super: with self; {
banal = callPackage ../development/python-modules/banal { };
bandcamp-api = callPackage ../development/python-modules/bandcamp-api { };
bandit = callPackage ../development/python-modules/bandit { };
bangla = callPackage ../development/python-modules/bangla { };