{ lib, buildPythonPackage, fetchFromGitHub, requests, oauthlib, python-dateutil, pytestCheckHook, }: buildPythonPackage rec { pname = "discogs-client"; version = "2.9"; format = "setuptools"; src = fetchFromGitHub { owner = "joalla"; repo = "discogs_client"; tag = "v${version}"; hash = "sha256-UWiop9hg6KSpSq4SnTtvFbRHYTnLe/Ed/o65sf78MYo="; }; propagatedBuildInputs = [ requests oauthlib python-dateutil ]; nativeCheckInputs = [ pytestCheckHook ]; pythonImportsCheck = [ "discogs_client" ]; meta = { description = "Unofficial Python API client for Discogs"; homepage = "https://github.com/joalla/discogs_client"; changelog = "https://github.com/joalla/discogs_client/releases/tag/v${version}"; license = lib.licenses.bsd2; maintainers = with lib.maintainers; [ fab ]; }; }