mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-26 07:34:11 +00:00
46 lines
837 B
Nix
46 lines
837 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, requests
|
|
, oauthlib
|
|
, python-dateutil
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "discogs-client";
|
|
version = "2.5";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "joalla";
|
|
repo = "discogs_client";
|
|
rev = "refs/tags/v${version}";
|
|
sha256 = "sha256-whLneq8RE1bok8jPlOteqIb5U07TvEa0O2mrzORp5HU=";
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
}
|