1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4, requests
5, oauthlib
6, python-dateutil
7, pytestCheckHook
8}:
9
10buildPythonPackage rec {
11 pname = "discogs-client";
12 version = "2.3.12";
13
14
15 src = fetchFromGitHub {
16 owner = "joalla";
17 repo = "discogs_client";
18 rev = "v${version}";
19 sha256 = "0y553x8rkgmqqg980n62pwdxbp75xalkhlb6k5g0cms42ggy5fsc";
20 };
21
22 propagatedBuildInputs = [
23 requests
24 oauthlib
25 python-dateutil
26 ];
27
28 checkInputs = [
29 pytestCheckHook
30 ];
31
32 pythonImportsCheck = [ "discogs_client" ];
33
34 meta = with lib; {
35 description = "Unofficial Python API client for Discogs";
36 homepage = "https://github.com/joalla/discogs_client";
37 license = licenses.bsd2;
38 maintainers = with maintainers; [ fab ];
39 };
40}