1{ 2 lib, 3 aiohttp, 4 buildPythonPackage, 5 fetchFromGitHub, 6 setuptools, 7 pythonOlder, 8 wheel, 9}: 10 11buildPythonPackage rec { 12 pname = "pyyardian"; 13 version = "1.2.0"; 14 pyproject = true; 15 16 disabled = pythonOlder "3.7"; 17 18 src = fetchFromGitHub { 19 owner = "h3l1o5"; 20 repo = "pyyardian"; 21 tag = version; 22 hash = "sha256-JBb62pFDuVcXIGRc6UOp5/ciUtbGm4XnKZjt1icF/jQ="; 23 }; 24 25 nativeBuildInputs = [ 26 setuptools 27 wheel 28 ]; 29 30 propagatedBuildInputs = [ aiohttp ]; 31 32 # Tests require network access 33 doCheck = false; 34 35 pythonImportsCheck = [ "pyyardian" ]; 36 37 meta = with lib; { 38 description = "Module for interacting with the Yardian irrigation controller"; 39 homepage = "https://github.com/h3l1o5/pyyardian"; 40 license = licenses.mit; 41 maintainers = with maintainers; [ fab ]; 42 }; 43}