nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at 22.05 67 lines 1.1 kB view raw
1{ lib 2, aiohttp 3, async-timeout 4, buildPythonPackage 5, crcmod 6, defusedxml 7, fetchFromGitHub 8, jsonpickle 9, munch 10, mypy 11, pyserial 12, pytest-aiohttp 13, pytest-asyncio 14, pytestCheckHook 15, python-dateutil 16, pythonOlder 17, pytz 18, semver 19}: 20 21buildPythonPackage rec { 22 pname = "plugwise"; 23 version = "0.18.4"; 24 format = "setuptools"; 25 26 disabled = pythonOlder "3.7"; 27 28 src = fetchFromGitHub { 29 owner = pname; 30 repo = "python-plugwise"; 31 rev = "refs/tags/v${version}"; 32 sha256 = "sha256-a4mbkwjdLOnoxe4Cj43IXGALqbTKqinoJAiPWfc79/8="; 33 }; 34 35 propagatedBuildInputs = [ 36 aiohttp 37 async-timeout 38 crcmod 39 defusedxml 40 munch 41 pyserial 42 python-dateutil 43 pytz 44 semver 45 ]; 46 47 checkInputs = [ 48 jsonpickle 49 mypy 50 pytest-aiohttp 51 pytest-asyncio 52 pytestCheckHook 53 ]; 54 55 pythonImportsCheck = [ 56 "plugwise" 57 ]; 58 59 __darwinAllowLocalNetworking = true; 60 61 meta = with lib; { 62 description = "Python module for Plugwise Smiles, Stretch and USB stick"; 63 homepage = "https://github.com/plugwise/python-plugwise"; 64 license = with licenses; [ mit ]; 65 maintainers = with maintainers; [ fab ]; 66 }; 67}