Merge pull request #251007 from fabaff/pydiscovergy
python311Packages.pydiscovergy: init at 2.0.3
This commit is contained in:
commit
21eefc0c42
3 changed files with 64 additions and 1 deletions
59
pkgs/development/python-modules/pydiscovergy/default.nix
Normal file
59
pkgs/development/python-modules/pydiscovergy/default.nix
Normal 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 ];
|
||||
};
|
||||
}
|
|
@ -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"
|
||||
|
|
|
@ -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 { };
|
||||
|
|
Loading…
Reference in a new issue