nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 requests,
6 setuptools,
7}:
8
9buildPythonPackage rec {
10 pname = "python-ecobee-api";
11 version = "0.3.2";
12 pyproject = true;
13
14 src = fetchFromGitHub {
15 owner = "nkgilley";
16 repo = "python-ecobee-api";
17 tag = version;
18 hash = "sha256-6uZc022C3EgEgsPGD302qAtFqubwQSETQr3SQSYXeb8=";
19 };
20
21 build-system = [ setuptools ];
22
23 dependencies = [ requests ];
24
25 # no tests implemented
26 doCheck = false;
27
28 pythonImportsCheck = [ "pyecobee" ];
29
30 meta = {
31 description = "Python API for talking to Ecobee thermostats";
32 homepage = "https://github.com/nkgilley/python-ecobee-api";
33 changelog = "https://github.com/nkgilley/python-ecobee-api/releases/tag/${src.tag}";
34 license = lib.licenses.mit;
35 maintainers = with lib.maintainers; [ dotlambda ];
36 };
37}