diff --git a/pkgs/development/python-modules/bandcamp-api/default.nix b/pkgs/development/python-modules/bandcamp-api/default.nix new file mode 100644 index 000000000000..714f4aa6b4d7 --- /dev/null +++ b/pkgs/development/python-modules/bandcamp-api/default.nix @@ -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 ]; + }; +} diff --git a/pkgs/tools/audio/spotdl/default.nix b/pkgs/tools/audio/spotdl/default.nix index abd96f56dc43..235ce6af4c3b 100644 --- a/pkgs/tools/audio/spotdl/default.nix +++ b/pkgs/tools/audio/spotdl/default.nix @@ -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; diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index db57e37fba1f..36ef507e2ee2 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -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 { };