Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 mock,
6 parameterized,
7 pytestCheckHook,
8 requests,
9 responses,
10}:
11
12buildPythonPackage rec {
13 pname = "nuheat";
14 version = "1.0.1";
15 format = "setuptools";
16
17 src = fetchFromGitHub {
18 owner = "broox";
19 repo = "python-nuheat";
20 tag = version;
21 hash = "sha256-EsPuwILfKc1Bpvu0Qos7yooC3dBaqf46lWhiSZdu3sc=";
22 };
23
24 propagatedBuildInputs = [ requests ];
25
26 nativeCheckInputs = [
27 mock
28 parameterized
29 pytestCheckHook
30 responses
31 ];
32
33 pythonImportsCheck = [ "nuheat" ];
34
35 meta = {
36 description = "Library to interact with NuHeat Signature and Mapei Mapeheat radiant floor thermostats";
37 homepage = "https://github.com/broox/python-nuheat";
38 changelog = "https://github.com/broox/python-nuheat/releases/tag/${version}";
39 license = lib.licenses.mit;
40 maintainers = with lib.maintainers; [ fab ];
41 };
42}