at master 1.3 kB view raw
1{ 2 lib, 3 aiohttp, 4 aresponses, 5 buildPythonPackage, 6 fetchFromGitHub, 7 mashumaro, 8 orjson, 9 poetry-core, 10 pytest-asyncio, 11 pytest-cov-stub, 12 pytestCheckHook, 13 pythonOlder, 14 yarl, 15}: 16 17buildPythonPackage rec { 18 pname = "tailscale"; 19 version = "0.6.2"; 20 format = "pyproject"; 21 22 disabled = pythonOlder "3.11"; 23 24 src = fetchFromGitHub { 25 owner = "frenck"; 26 repo = "python-tailscale"; 27 tag = "v${version}"; 28 hash = "sha256-azqvMAluhThfteLEZObApnJjtnT3NzO+VVwTzmxuaFY="; 29 }; 30 31 postPatch = '' 32 # Upstream doesn't set a version for the pyproject.toml 33 substituteInPlace pyproject.toml \ 34 --replace 'version = "0.0.0"' 'version = "${version}"' 35 ''; 36 37 nativeBuildInputs = [ poetry-core ]; 38 39 propagatedBuildInputs = [ 40 aiohttp 41 mashumaro 42 orjson 43 yarl 44 ]; 45 46 nativeCheckInputs = [ 47 aresponses 48 pytest-asyncio 49 pytest-cov-stub 50 pytestCheckHook 51 ]; 52 53 pythonImportsCheck = [ "tailscale" ]; 54 55 meta = with lib; { 56 description = "Python client for the Tailscale API"; 57 homepage = "https://github.com/frenck/python-tailscale"; 58 changelog = "https://github.com/frenck/python-tailscale/releases/tag/v${version}"; 59 license = licenses.mit; 60 maintainers = with maintainers; [ fab ]; 61 }; 62}