nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 mock,
6 pytestCheckHook,
7}:
8
9buildPythonPackage rec {
10 pname = "radiotherm";
11 version = "2.1.0";
12 format = "setuptools";
13
14 src = fetchFromGitHub {
15 owner = "mhrivnak";
16 repo = "radiotherm";
17 rev = version;
18 sha256 = "0p37pc7l2malmjfkdlh4q2cfa6dqpsk1rah2j2xil0pj57ai6bks";
19 };
20
21 nativeCheckInputs = [
22 mock
23 pytestCheckHook
24 ];
25
26 pythonImportsCheck = [ "radiotherm" ];
27
28 meta = {
29 description = "Python library for Wifi Radiothermostat";
30 homepage = "https://github.com/mhrivnak/radiotherm";
31 license = with lib.licenses; [ bsd3 ];
32 maintainers = with lib.maintainers; [ fab ];
33 };
34}