diff options
author | Fabian Affolter <mail@fabian-affolter.ch> | 2021-07-02 21:58:04 +0200 |
---|---|---|
committer | Fabian Affolter <mail@fabian-affolter.ch> | 2021-07-05 09:10:15 +0200 |
commit | ac15a8ad8bb525be86be31b71cbea26c53586c0c (patch) | |
tree | 3deb34d3ee5cfff4b2bebe6e2c2825b6d6b304e6 /pkgs/development/python-modules/discogs-client | |
parent | 02de971fc24ad37eef13a914112cb5addf63381e (diff) |
python3Packages.discogs-client: rename from discogs_client
Diffstat (limited to 'pkgs/development/python-modules/discogs-client')
-rw-r--r-- | pkgs/development/python-modules/discogs-client/default.nix | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/discogs-client/default.nix b/pkgs/development/python-modules/discogs-client/default.nix new file mode 100644 index 0000000000000..e47922f9577aa --- /dev/null +++ b/pkgs/development/python-modules/discogs-client/default.nix @@ -0,0 +1,40 @@ +{ lib +, buildPythonPackage +, fetchFromGitHub +, requests +, oauthlib +, python-dateutil +, pytestCheckHook +}: + +buildPythonPackage rec { + pname = "discogs-client"; + version = "2.3.12"; + + + src = fetchFromGitHub { + owner = "joalla"; + repo = "discogs_client"; + rev = "v${version}"; + sha256 = "0y553x8rkgmqqg980n62pwdxbp75xalkhlb6k5g0cms42ggy5fsc"; + }; + + 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 ]; + }; +} |