1{ lib 2, authlib 3, buildPythonPackage 4, dataclasses-json 5, fetchFromGitHub 6, httpx 7, marshmallow 8, pytest-httpx 9, poetry-core 10, pytestCheckHook 11, pythonOlder 12, pytz 13, respx 14}: 15 16buildPythonPackage rec { 17 pname = "pydiscovergy"; 18 version = "2.0.5"; 19 format = "pyproject"; 20 21 disabled = pythonOlder "3.10"; 22 23 src = fetchFromGitHub { 24 owner = "jpbede"; 25 repo = "pydiscovergy"; 26 rev = "refs/tags/${version}"; 27 hash = "sha256-u2G+o/vhPri7CPSnekC8rUo/AvuvePpG51MR+FdH2XA="; 28 }; 29 30 nativeBuildInputs = [ 31 poetry-core 32 ]; 33 34 propagatedBuildInputs = [ 35 authlib 36 dataclasses-json 37 httpx 38 marshmallow 39 pytz 40 ]; 41 42 nativeCheckInputs = [ 43 pytest-httpx 44 pytestCheckHook 45 respx 46 ]; 47 48 pythonImportsCheck = [ 49 "pydiscovergy" 50 ]; 51 52 meta = with lib; { 53 description = "Async Python 3 library for interacting with the Discovergy API"; 54 homepage = "https://github.com/jpbede/pydiscovergy"; 55 changelog = "https://github.com/jpbede/pydiscovergy/releases/tag/${version}"; 56 license = licenses.mit; 57 maintainers = with maintainers; [ fab ]; 58 }; 59}