at master 1.0 kB view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 aiohttp, 6 pythonOlder, 7 hatchling, 8 pytz, 9 pytestCheckHook, 10 pytest-asyncio, 11}: 12 13buildPythonPackage rec { 14 pname = "tessie-api"; 15 version = "0.1.2"; 16 pyproject = true; 17 18 disabled = pythonOlder "3.5"; 19 20 src = fetchFromGitHub { 21 owner = "andrewgierens"; 22 repo = "tessie_python_api"; 23 tag = version; 24 hash = "sha256-uY52SSG2u4lcX9X7Ql/pn31uOwpqIy3kkuLMvsFBA3s="; 25 }; 26 27 build-system = [ hatchling ]; 28 29 dependencies = [ 30 aiohttp 31 pytz 32 ]; 33 34 nativeCheckInputs = [ 35 pytestCheckHook 36 pytest-asyncio 37 ]; 38 39 pythonImportsCheck = [ "tessie_api" ]; 40 41 # Tests require API credentials 42 doCheck = false; 43 44 meta = { 45 description = "Python wrapper for the Tessie API"; 46 homepage = "https://github.com/andrewgierens/tessie_python_api"; 47 changelog = "https://github.com/andrewgierens/tessie_python_api/releases/tag/${version}"; 48 license = lib.licenses.gpl3Plus; 49 maintainers = [ lib.maintainers.jamiemagee ]; 50 }; 51}