7bc014aa9c
GitOrigin-RevId: c97e777ff06fcb8d37dcdf5e21e9eff1f34f0e90
45 lines
837 B
Nix
45 lines
837 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, requests
|
|
, oauthlib
|
|
, python-dateutil
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "discogs-client";
|
|
version = "2.4";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "joalla";
|
|
repo = "discogs_client";
|
|
rev = "refs/tags/v${version}";
|
|
sha256 = "sha256-gGAtRhAg/W0dREhCOmif1XlQ4gldIGQ2hIC8gzifRu8=";
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
}
|