nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at 22.05 51 lines 911 B view raw
1{ lib 2, aiohttp 3, buildPythonPackage 4, fetchFromGitHub 5, jsonpickle 6, paho-mqtt 7, pytest-asyncio 8, pytest-timeout 9, pytestCheckHook 10, python-dateutil 11, pythonOlder 12}: 13 14buildPythonPackage rec { 15 pname = "pyduke-energy"; 16 version = "1.0.0"; 17 format = "setuptools"; 18 19 disabled = pythonOlder "3.7"; 20 21 src = fetchFromGitHub { 22 owner = "mjmeli"; 23 repo = pname; 24 rev = "v${version}"; 25 sha256 = "sha256-bthEWsitnZwK4eyhLXv5RxlOaWyJG1fK0cC4wMEqCbI="; 26 }; 27 28 propagatedBuildInputs = [ 29 aiohttp 30 jsonpickle 31 paho-mqtt 32 python-dateutil 33 ]; 34 35 checkInputs = [ 36 pytest-asyncio 37 pytest-timeout 38 pytestCheckHook 39 ]; 40 41 pythonImportsCheck = [ 42 "pyduke_energy" 43 ]; 44 45 meta = with lib; { 46 description = "Python module for the Duke Energy API"; 47 homepage = "https://github.com/mjmeli/pyduke-energy"; 48 license = licenses.mit; 49 maintainers = with maintainers; [ fab ]; 50 }; 51}