5e9e1146e1
GitOrigin-RevId: 18036c0be90f4e308ae3ebcab0e14aae0336fe42
46 lines
926 B
Nix
46 lines
926 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, requests
|
|
, oauthlib
|
|
, python-dateutil
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "discogs-client";
|
|
version = "2.7";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "joalla";
|
|
repo = "discogs_client";
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-sTzYhUKPqaCE553FqWR4qdtDDtymhuybHWiDOUwgglA=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
requests
|
|
oauthlib
|
|
python-dateutil
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
pytestCheckHook
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"discogs_client"
|
|
];
|
|
|
|
meta = with lib; {
|
|
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 = licenses.bsd2;
|
|
maintainers = with maintainers; [ fab ];
|
|
};
|
|
}
|