1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, requests 5, oauthlib 6, python-dateutil 7, pytestCheckHook 8, pythonOlder 9}: 10 11buildPythonPackage rec { 12 pname = "discogs-client"; 13 version = "2.7"; 14 format = "setuptools"; 15 16 disabled = pythonOlder "3.7"; 17 18 src = fetchFromGitHub { 19 owner = "joalla"; 20 repo = "discogs_client"; 21 rev = "refs/tags/v${version}"; 22 hash = "sha256-sTzYhUKPqaCE553FqWR4qdtDDtymhuybHWiDOUwgglA="; 23 }; 24 25 propagatedBuildInputs = [ 26 requests 27 oauthlib 28 python-dateutil 29 ]; 30 31 nativeCheckInputs = [ 32 pytestCheckHook 33 ]; 34 35 pythonImportsCheck = [ 36 "discogs_client" 37 ]; 38 39 meta = with lib; { 40 description = "Unofficial Python API client for Discogs"; 41 homepage = "https://github.com/joalla/discogs_client"; 42 changelog = "https://github.com/joalla/discogs_client/releases/tag/v${version}"; 43 license = licenses.bsd2; 44 maintainers = with maintainers; [ fab ]; 45 }; 46}