Unverified Commit 21eefc0c authored by Fabian Affolter's avatar Fabian Affolter Committed by GitHub
Browse files

Merge pull request #251007 from fabaff/pydiscovergy

python311Packages.pydiscovergy: init at 2.0.3
parents 7c6dc82d 8d4a1b09
Loading
Loading
Loading
Loading
+59 −0
Original line number Diff line number Diff line
{ 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 ];
  };
}
+3 −1
Original line number Diff line number Diff line
@@ -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"
+2 −0
Original line number Diff line number Diff line
@@ -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 { };