1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 setuptools, 6 aiohttp, 7 pytest-aiohttp, 8 pytestCheckHook, 9}: 10 11buildPythonPackage rec { 12 pname = "pyemoncms"; 13 version = "0.1.3"; 14 pyproject = true; 15 16 src = fetchFromGitHub { 17 owner = "Open-Building-Management"; 18 repo = "pyemoncms"; 19 tag = "v${version}"; 20 hash = "sha256-Bvcnl3av9SF0CNUjg/QDdvENIEgPg26fAJ522jBrL7Q="; 21 }; 22 23 build-system = [ setuptools ]; 24 25 dependencies = [ aiohttp ]; 26 27 pythonImportsCheck = [ "pyemoncms" ]; 28 29 nativeCheckInputs = [ 30 pytest-aiohttp 31 pytestCheckHook 32 ]; 33 34 disabledTests = [ 35 # requires networking 36 "test_timeout" 37 ]; 38 39 meta = { 40 changelog = "https://github.com/Open-Building-Management/pyemoncms/releases/tag/${src.tag}"; 41 description = "Python library for emoncms API"; 42 homepage = "https://github.com/Open-Building-Management/pyemoncms"; 43 license = lib.licenses.mit; 44 maintainers = with lib.maintainers; [ dotlambda ]; 45 }; 46}