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