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.12"; 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-Jf/zYnBHVl3TYxFy9Chy6qNH/eCroZkmUOEWfd62RIo="; 26 }; 27 28 propagatedBuildInputs = [ 29 aiohttp 30 ]; 31 32 pythonImportsCheck = [ 33 "pyoctoprintapi" 34 ]; 35 36 nativeCheckInputs = [ 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 changelog = "https://github.com/rfleming71/pyoctoprintapi/releases/tag/v${version}"; 45 license = licenses.mit; 46 maintainers= with maintainers; [ hexa ]; 47 }; 48}