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