depot/third_party/nixpkgs/pkgs/development/python-modules/pytado/default.nix
Default email 5e7c2d6cef Project import generated by Copybara.
GitOrigin-RevId: f99e5f03cc0aa231ab5950a15ed02afec45ed51a
2023-10-09 21:29:22 +02:00

42 lines
827 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, pytestCheckHook
, requests
, pythonOlder
}:
buildPythonPackage rec {
pname = "pytado";
version = "0.17.2";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "wmalgadey";
repo = "PyTado";
rev = "refs/tags/${version}";
sha256 = "sha256-w1qtSEpnZCs7+M/0Gywz9AeMxUzz2csHKm9SxBKzmz4=";
};
propagatedBuildInputs = [
requests
];
nativeCheckInputs = [
pytestCheckHook
];
pythonImportsCheck = [
"PyTado"
];
meta = with lib; {
description = "Python binding for Tado web API";
homepage = "https://github.com/wmalgadey/PyTado";
changelog = "https://github.com/wmalgadey/PyTado/releases/tag/${version}";
license = licenses.gpl3Only;
maintainers = with maintainers; [ ];
};
}