Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / pytado / default.nix
blob8575fceadc4f242e9701c8526b0b135875828973
1 { lib
2 , buildPythonPackage
3 , fetchFromGitHub
4 , pytestCheckHook
5 , requests
6 , pythonOlder
7 }:
9 buildPythonPackage rec {
10   pname = "pytado";
11   version = "0.17.2";
12   format = "setuptools";
14   disabled = pythonOlder "3.7";
16   src = fetchFromGitHub {
17     owner = "wmalgadey";
18     repo = "PyTado";
19     rev = "refs/tags/${version}";
20     sha256 = "sha256-w1qtSEpnZCs7+M/0Gywz9AeMxUzz2csHKm9SxBKzmz4=";
21   };
23   propagatedBuildInputs = [
24     requests
25   ];
27   nativeCheckInputs = [
28     pytestCheckHook
29   ];
31   pythonImportsCheck = [
32     "PyTado"
33   ];
35   meta = with lib; {
36     description = "Python binding for Tado web API";
37     homepage = "https://github.com/wmalgadey/PyTado";
38     changelog = "https://github.com/wmalgadey/PyTado/releases/tag/${version}";
39     license = licenses.gpl3Only;
40     maintainers = with maintainers; [ ];
41   };