summaryrefslogtreecommitdiffstats
path: root/pkgs/development/python-modules/bandcamp-api/default.nix
blob: a1fbaaffc8bb18b48f846927cc179804679a55fc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
{
  lib,
  buildPythonPackage,
  fetchPypi,
  setuptools,
  beautifulsoup4,
  demjson3,
  html5lib,
  lxml,
  requests,
}:

buildPythonPackage (finalAttrs: {
  pname = "bandcamp-api";
  version = "0.2.3";
  pyproject = true;

  __structuredAttrs = true;

  src = fetchPypi {
    pname = "bandcamp_api";
    inherit (finalAttrs) version;
    hash = "sha256-7/WXMo7fCDMHATp4hEB8b7fNJWisUv06hbP+O878Phs=";
  };

  build-system = [ setuptools ];

  dependencies = [
    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 ];
  };
})