depot/third_party/nixpkgs/pkgs/development/python-modules/discogs-client/default.nix
Default email 81047829ea Project import generated by Copybara.
GitOrigin-RevId: 48d63e924a2666baf37f4f14a18f19347fbd54a2
2022-02-10 15:34:41 -05:00

45 lines
830 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, requests
, oauthlib
, python-dateutil
, pytestCheckHook
, pythonOlder
}:
buildPythonPackage rec {
pname = "discogs-client";
version = "2.3.13";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "joalla";
repo = "discogs_client";
rev = "v${version}";
sha256 = "sha256-TOja0pCJv8TAI0ns8M/tamZ5Pp8k5sSKDnvN4SeKtW8=";
};
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 ];
};
}