Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / pyswitchbee / default.nix
blob9fb94a5a05975473e6e5659e8293a70da5086e09
1 { lib
2 , awesomeversion
3 , buildPythonPackage
4 , aiohttp
5 , fetchFromGitHub
6 , setuptools
7 , pythonOlder
8 , packaging
9 }:
11 buildPythonPackage rec {
12   pname = "pyswitchbee";
13   version = "1.8.0";
14   format = "pyproject";
16   disabled = pythonOlder "3.9";
18   src = fetchFromGitHub {
19     owner = "jafar-atili";
20     repo = "pySwitchbee";
21     rev = "refs/tags/${version}";
22     hash = "sha256-bMxWrapFX689yvC6+9NUunEtTe79+QNauFa1ZjG9ON4=";
23   };
25   nativeBuildInputs = [
26     setuptools
27   ];
29   propagatedBuildInputs = [
30     aiohttp
31     awesomeversion
32     packaging
33   ];
35   # Module doesn't have tests
36   doCheck = false;
38   pythonImportsCheck = [
39     "switchbee"
40   ];
42   meta = with lib; {
43     description = "Library to control SwitchBee smart home device";
44     homepage = "https://github.com/jafar-atili/pySwitchbee/";
45     changelog = "https://github.com/jafar-atili/pySwitchbee/releases/tag/${version}";
46     license = with licenses; [ asl20 ];
47     maintainers = with maintainers; [ fab ];
48   };