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