nixpkgs/pkgs/development/python-modules/discogs-client/default.nix
2025-01-04 00:19:17 +01:00

44 lines
916 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
requests,
oauthlib,
python-dateutil,
pytestCheckHook,
pythonOlder,
}:
buildPythonPackage rec {
pname = "discogs-client";
version = "2.7.1";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "joalla";
repo = "discogs_client";
tag = "v${version}";
hash = "sha256-3MwGuYh4Jp/T7LNd5QjajHScdJJOa+VRXmKwFVqfURU=";
};
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 ];
};
}