Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at gcc-offload 54 lines 1.1 kB view raw
1{ 2 lib, 3 aiohttp, 4 aiozoneinfo, 5 arrow, 6 buildPythonPackage, 7 cryptography, 8 fetchFromGitHub, 9 pyotp, 10 python-dotenv, 11 pytestCheckHook, 12 pythonOlder, 13 setuptools, 14}: 15 16buildPythonPackage rec { 17 pname = "opower"; 18 version = "0.8.6"; 19 pyproject = true; 20 21 disabled = pythonOlder "3.9"; 22 23 src = fetchFromGitHub { 24 owner = "tronikos"; 25 repo = "opower"; 26 rev = "refs/tags/v${version}"; 27 hash = "sha256-3GzShdYNfaBxu1azPW8eUR5rDn8rrGiE/MhTmwzLOg8="; 28 }; 29 30 build-system = [ setuptools ]; 31 32 dependencies = [ 33 aiohttp 34 aiozoneinfo 35 arrow 36 cryptography 37 pyotp 38 ]; 39 40 nativeCheckInputs = [ 41 pytestCheckHook 42 python-dotenv 43 ]; 44 45 pythonImportsCheck = [ "opower" ]; 46 47 meta = with lib; { 48 description = "Module for getting historical and forecasted usage/cost from utilities that use opower.com"; 49 homepage = "https://github.com/tronikos/opower"; 50 changelog = "https://github.com/tronikos/opower/releases/tag/v${version}"; 51 license = licenses.asl20; 52 maintainers = with maintainers; [ fab ]; 53 }; 54}