1{ lib 2, aiohttp 3, buildPythonPackage 4, fetchFromGitHub 5, poetry-core 6, pythonOlder 7, yarl 8}: 9 10buildPythonPackage rec { 11 pname = "p1monitor"; 12 version = "1.0.0"; 13 format = "pyproject"; 14 15 disabled = pythonOlder "3.8"; 16 17 src = fetchFromGitHub { 18 owner = "klaasnicolaas"; 19 repo = "python-p1monitor"; 20 rev = "v${version}"; 21 sha256 = "1xfr097hmjppp6cfdvfjypxmr1sb9dasq1s3np2vd5d93w0p5123"; 22 }; 23 24 nativeBuildInputs = [ 25 poetry-core 26 ]; 27 28 propagatedBuildInputs = [ 29 aiohttp 30 yarl 31 ]; 32 33 # Project has no tests 34 doCheck = false; 35 36 pythonImportsCheck = [ "p1monitor" ]; 37 38 meta = with lib; { 39 description = "Python client for the P1 Monitor"; 40 homepage = "https://github.com/klaasnicolaas/python-p1monitor"; 41 license = with licenses; [ mit ]; 42 maintainers = with maintainers; [ fab ]; 43 }; 44}