8a45d4525b
GitOrigin-RevId: 710fed5a2483f945b14f4a58af2cd3676b42d8c8
45 lines
830 B
Nix
45 lines
830 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, requests
|
|
, oauthlib
|
|
, python-dateutil
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "discogs-client";
|
|
version = "2.3.14";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "joalla";
|
|
repo = "discogs_client";
|
|
rev = "v${version}";
|
|
sha256 = "sha256-HJxqTwZ9byjZxdftQPTkVo0Ufio9gNGH69q5Q2gYR00=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
requests
|
|
oauthlib
|
|
python-dateutil
|
|
];
|
|
|
|
checkInputs = [
|
|
pytestCheckHook
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"discogs_client"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Unofficial Python API client for Discogs";
|
|
homepage = "https://github.com/joalla/discogs_client";
|
|
license = licenses.bsd2;
|
|
maintainers = with maintainers; [ fab ];
|
|
};
|
|
}
|