Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / pytado / default.nix
blob8a9a3f4cf2fa6925682e99393faf788e0559fbef
1 { lib
2 , buildPythonPackage
3 , fetchFromGitHub
4 , pytestCheckHook
5 , requests
6 , pythonOlder
7 , setuptools
8 }:
10 buildPythonPackage rec {
11   pname = "pytado";
12   version = "0.17.5";
13   pyproject = true;
15   disabled = pythonOlder "3.7";
17   src = fetchFromGitHub {
18     owner = "wmalgadey";
19     repo = "PyTado";
20     rev = "refs/tags/${version}";
21     hash = "sha256-FjdqZc4Zt2sLYJpnD/MAzr8Y9lGHteHB5psQqheS84I=";
22   };
24   nativeBuildInputs = [
25     setuptools
26   ];
28   propagatedBuildInputs = [
29     requests
30   ];
32   nativeCheckInputs = [
33     pytestCheckHook
34   ];
36   pythonImportsCheck = [
37     "PyTado"
38   ];
40   meta = with lib; {
41     description = "Python binding for Tado web API";
42     mainProgram = "pytado";
43     homepage = "https://github.com/wmalgadey/PyTado";
44     changelog = "https://github.com/wmalgadey/PyTado/releases/tag/${version}";
45     license = licenses.gpl3Only;
46     maintainers = with maintainers; [ ];
47   };