Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 pytestCheckHook, 6 pythonOlder, 7 requests, 8 setuptools, 9}: 10 11buildPythonPackage rec { 12 pname = "python-tado"; 13 version = "0.17.6"; 14 pyproject = true; 15 16 disabled = pythonOlder "3.5"; 17 18 src = fetchFromGitHub { 19 owner = "wmalgadey"; 20 repo = "PyTado"; 21 rev = "refs/tags/${version}"; 22 hash = "sha256-KcYxUKQuO7TLS4YPg2mrBjP+DMnvZeJokGzwmeM/CvE="; 23 }; 24 25 build-system = [ setuptools ]; 26 27 dependencies = [ requests ]; 28 29 nativeCheckInputs = [ pytestCheckHook ]; 30 31 pythonImportsCheck = [ "PyTado" ]; 32 33 meta = with lib; { 34 description = "Python binding for Tado web API. Pythonize your central heating!"; 35 homepage = "https://github.com/wmalgadey/PyTado"; 36 changelog = "https://github.com/wmalgadey/PyTado/releases/tag/${version}"; 37 license = licenses.gpl3Plus; 38 maintainers = with maintainers; [ jamiemagee ]; 39 mainProgram = "pytado"; 40 }; 41}