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