diff options
author | Robert Schütz <nix@dotlambda.de> | 2023-07-11 19:18:11 -0700 |
---|---|---|
committer | Robert Schütz <nix@dotlambda.de> | 2023-07-12 06:39:37 -0700 |
commit | 7e7b2b68323de16f3dd62f3599790696bed0c80b (patch) | |
tree | 1cf18046f6a0acfcf019415eac628f4f45e76965 | |
parent | a155c31592472e28f5ac3f52886088d1e72b028a (diff) |
python310Packages.bandcamp-api: init at 0.1.15
-rw-r--r-- | pkgs/development/python-modules/bandcamp-api/default.nix | 47 | ||||
-rw-r--r-- | pkgs/top-level/python-packages.nix | 2 |
2 files changed, 49 insertions, 0 deletions
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 0000000000000..714f4aa6b4d7a --- /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/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index db57e37fba1f5..36ef507e2ee23 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 { }; |