1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4 5# propagated 6, aiohttp 7 8# tests 9, pytest-asyncio 10, pytestCheckHook 11}: 12 13let 14 pname = "pyoctoprintapi"; 15 version = "0.1.9"; 16in 17buildPythonPackage { 18 inherit pname version; 19 format = "setuptools"; 20 21 src = fetchFromGitHub { 22 owner = "rfleming71"; 23 repo = pname; 24 rev = "refs/tags/v${version}"; 25 hash = "sha256-kZMTHw0S12aUn/DYQuyjQa48QtiwLGYyY4gYKA5063A="; 26 }; 27 28 propagatedBuildInputs = [ 29 aiohttp 30 ]; 31 32 pythonImportsCheck = [ 33 "pyoctoprintapi" 34 ]; 35 36 checkInputs = [ 37 pytest-asyncio 38 pytestCheckHook 39 ]; 40 41 meta = with lib; { 42 description = "Simple async wrapper around the Octoprint API"; 43 homepage = "https://github.com/rfleming71/pyoctoprintapi"; 44 license = licenses.mit; 45 maintainers= with maintainers; [ hexa ]; 46 }; 47}