python310Packages.bandcamp-api: init at 0.1.15
This commit is contained in:
parent
a155c31592
commit
7e7b2b6832
2 changed files with 49 additions and 0 deletions
47
pkgs/development/python-modules/bandcamp-api/default.nix
Normal file
47
pkgs/development/python-modules/bandcamp-api/default.nix
Normal 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 ];
|
||||||
|
};
|
||||||
|
}
|
|
@ -1215,6 +1215,8 @@ self: super: with self; {
|
||||||
|
|
||||||
banal = callPackage ../development/python-modules/banal { };
|
banal = callPackage ../development/python-modules/banal { };
|
||||||
|
|
||||||
|
bandcamp-api = callPackage ../development/python-modules/bandcamp-api { };
|
||||||
|
|
||||||
bandit = callPackage ../development/python-modules/bandit { };
|
bandit = callPackage ../development/python-modules/bandit { };
|
||||||
|
|
||||||
bangla = callPackage ../development/python-modules/bangla { };
|
bangla = callPackage ../development/python-modules/bangla { };
|
||||||
|
|
Loading…
Reference in a new issue