nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 awesomeversion,
4 buildPythonPackage,
5 aiohttp,
6 fetchFromGitHub,
7 setuptools,
8 packaging,
9}:
10
11buildPythonPackage rec {
12 pname = "pyswitchbee";
13 version = "1.8.3";
14 pyproject = true;
15
16 src = fetchFromGitHub {
17 owner = "jafar-atili";
18 repo = "pySwitchbee";
19 tag = version;
20 hash = "sha256-at/HCY6htUz1ej09XPrb2QEyoiOWhIEpgSwJange1cU=";
21 };
22
23 nativeBuildInputs = [ setuptools ];
24
25 propagatedBuildInputs = [
26 aiohttp
27 awesomeversion
28 packaging
29 ];
30
31 # Module doesn't have tests
32 doCheck = false;
33
34 pythonImportsCheck = [ "switchbee" ];
35
36 meta = {
37 description = "Library to control SwitchBee smart home device";
38 homepage = "https://github.com/jafar-atili/pySwitchbee/";
39 changelog = "https://github.com/jafar-atili/pySwitchbee/releases/tag/${version}";
40 license = with lib.licenses; [ asl20 ];
41 maintainers = with lib.maintainers; [ fab ];
42 };
43}