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