Merge pull request #251007 from fabaff/pydiscovergy

python311Packages.pydiscovergy: init at 2.0.3
This commit is contained in:
Fabian Affolter 2023-09-09 16:00:03 +02:00 committed by GitHub
commit 21eefc0c42
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 64 additions and 1 deletions

View File

@ -0,0 +1,59 @@
{ lib
, authlib
, buildPythonPackage
, dataclasses-json
, fetchFromGitHub
, httpx
, marshmallow
, pytest-httpx
, poetry-core
, pytestCheckHook
, pythonOlder
, pytz
, respx
}:
buildPythonPackage rec {
pname = "pydiscovergy";
version = "2.0.3";
format = "pyproject";
disabled = pythonOlder "3.10";
src = fetchFromGitHub {
owner = "jpbede";
repo = "pydiscovergy";
rev = "refs/tags/${version}";
hash = "sha256-iE80r9xXDI01gG0S9zhWsLSdVLQo2R4A5Ktnccsetzk=";
};
nativeBuildInputs = [
poetry-core
];
propagatedBuildInputs = [
authlib
dataclasses-json
httpx
marshmallow
pytz
];
nativeCheckInputs = [
pytest-httpx
pytestCheckHook
respx
];
pythonImportsCheck = [
"pydiscovergy"
];
meta = with lib; {
description = "Async Python 3 library for interacting with the Discovergy API";
homepage = "https://github.com/jpbede/pydiscovergy";
changelog = "https://github.com/jpbede/pydiscovergy/releases/tag/${version}";
license = licenses.mit;
maintainers = with maintainers; [ fab ];
};
}

View File

@ -826,7 +826,8 @@
nextcord
];
"discovergy" = ps: with ps; [
]; # missing inputs: pydiscovergy
pydiscovergy
];
"dlib_face_detect" = ps: with ps; [
face-recognition
];
@ -5011,6 +5012,7 @@
"dialogflow"
"directv"
"discord"
"discovergy"
"dlna_dmr"
"dlna_dms"
"dnsip"

View File

@ -9018,6 +9018,8 @@ self: super: with self; {
pydiscourse = callPackage ../development/python-modules/pydiscourse { };
pydiscovergy = callPackage ../development/python-modules/pydiscovergy { };
pydispatcher = callPackage ../development/python-modules/pydispatcher { };
pydmd = callPackage ../development/python-modules/pydmd { };