at master 1.1 kB view raw
1{ 2 lib, 3 aiohttp, 4 async-timeout, 5 buildPythonPackage, 6 fetchFromGitHub, 7 poetry-core, 8 pytest-asyncio, 9 pytest-timeout, 10 pytest-cov-stub, 11 pytestCheckHook, 12 pythonOlder, 13 python-dotenv, 14}: 15 16buildPythonPackage rec { 17 pname = "aiopvpc"; 18 version = "4.3.1"; 19 pyproject = true; 20 21 disabled = pythonOlder "3.10"; 22 23 src = fetchFromGitHub { 24 owner = "azogue"; 25 repo = "aiopvpc"; 26 tag = "v${version}"; 27 hash = "sha256-1xeXfhoXRfJ7vrpRPeYmwcAGjL09iNCOm/f4pPvuZLU="; 28 }; 29 30 build-system = [ poetry-core ]; 31 32 dependencies = [ 33 aiohttp 34 async-timeout 35 ]; 36 37 nativeCheckInputs = [ 38 pytest-asyncio 39 pytest-timeout 40 pytest-cov-stub 41 pytestCheckHook 42 python-dotenv 43 ]; 44 45 pythonImportsCheck = [ "aiopvpc" ]; 46 47 meta = with lib; { 48 description = "Python module to download Spanish electricity hourly prices (PVPC)"; 49 homepage = "https://github.com/azogue/aiopvpc"; 50 changelog = "https://github.com/azogue/aiopvpc/blob/v${version}/CHANGELOG.md"; 51 license = with licenses; [ mit ]; 52 maintainers = with maintainers; [ fab ]; 53 }; 54}