depot/third_party/nixpkgs/pkgs/development/python-modules/pytado/default.nix
Default email 9c6ee729d6 Project import generated by Copybara.
GitOrigin-RevId: 6cee3b5893090b0f5f0a06b4cf42ca4e60e5d222
2023-07-15 19:15:38 +02:00

38 lines
712 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, pytestCheckHook
, requests
}:
buildPythonPackage rec {
pname = "pytado";
version = "0.16.0";
src = fetchFromGitHub {
owner = "wmalgadey";
repo = "PyTado";
# Upstream hasn't tagged 0.13.0 yet
rev = "refs/tags/${version}";
sha256 = "sha256-tpWr+VlkJ9svN9XtBIDEAos4uxYCl6njvUBPIJG++Yg=";
};
propagatedBuildInputs = [
requests
];
nativeCheckInputs = [
pytestCheckHook
];
pythonImportsCheck = [
"PyTado"
];
meta = with lib; {
description = "Python binding for Tado web API";
homepage = "https://github.com/wmalgadey/PyTado";
license = licenses.gpl3;
maintainers = with maintainers; [ ];
};
}