Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 24.05-beta 49 lines 953 B view raw
1{ 2 lib, 3 aiohttp, 4 buildPythonPackage, 5 click, 6 fetchFromGitHub, 7 incremental, 8 pythonOlder, 9 setuptools, 10 typer, 11}: 12 13buildPythonPackage rec { 14 pname = "ovoenergy"; 15 version = "2.0.0"; 16 pyproject = true; 17 18 disabled = pythonOlder "3.11"; 19 20 src = fetchFromGitHub { 21 owner = "timmo001"; 22 repo = "ovoenergy"; 23 rev = "refs/tags/${version}"; 24 hash = "sha256-ZcTSf7UejEUqQo0qEXP3fWjZYRx0a3ZBNVkwS2dL3Yk="; 25 }; 26 27 build-system = [ setuptools ]; 28 29 nativeBuildInputs = [ incremental ]; 30 31 dependencies = [ 32 aiohttp 33 click 34 typer 35 ]; 36 37 # Project has no tests 38 doCheck = false; 39 40 pythonImportsCheck = [ "ovoenergy" ]; 41 42 meta = with lib; { 43 description = "Python client for getting data from OVO's API"; 44 homepage = "https://github.com/timmo001/ovoenergy"; 45 changelog = "https://github.com/timmo001/ovoenergy/releases/tag/${version}"; 46 license = licenses.mit; 47 maintainers = with maintainers; [ fab ]; 48 }; 49}