git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #132821 from fabaff/opengarage
commit9994d6d607a711f45fd62e192fac240c92b41d3e authorSandro <sandro.jaeckel@gmail.com> dateFri 6 Aug 2021, 10:59 (5 years ago) parent74688e35af9f94
3 files changed+40−1
pkgs/development/python-modules/open-garage/default.nix+37 pkgs/servers/home-assistant/component-packages.nix+1−1 pkgs/top-level/python-packages.nix+2
pkgs/development/python-modules/open-garage/default.nixnew file+37
@@ -0,0 +1,37 @@
1+{ lib
2+, aiohttp
3+, async-timeout
4+, buildPythonPackage
5+, fetchFromGitHub
6+, pythonOlder
7+}:
8+
9+buildPythonPackage rec {
10+ pname = "open-garage";
11+ version = "0.1.5";
12+ disabled = pythonOlder "3.5";
13+
14+ src = fetchFromGitHub {
15+ owner = "Danielhiversen";
16+ repo = "pyOpenGarage";
17+ rev = version;
18+ sha256 = "1iqcqkbb1ik5lmsvwgy6i780x6y3wlm1gx257anxyvp1b21gm24p";
19+ };
20+
21+ propagatedBuildInputs = [
22+ aiohttp
23+ async-timeout
24+ ];
25+
26+ # Project has no tests
27+ doCheck = false;
28+
29+ pythonImportsCheck = [ "opengarage" ];
30+
31+ meta = with lib; {
32+ description = "Python module to communicate with opengarage.io";
33+ homepage = "https://github.com/Danielhiversen/pyOpenGarage";
34+ license = with licenses; [ mit ];
35+ maintainers = with maintainers; [ fab ];
36+ };
37+}
pkgs/servers/home-assistant/component-packages.nix+1−1
@@ -607,7 +607,7 @@
607607 "openerz" = ps: with ps; [ openerz-api ];
608608 "openevse" = ps: with ps; [ ]; # missing inputs: openevsewifi
609609 "openexchangerates" = ps: with ps; [ ];
610− "opengarage" = ps: with ps; [ ]; # missing inputs: open-garage
610+ "opengarage" = ps: with ps; [ open-garage ];
611611 "openhardwaremonitor" = ps: with ps; [ ];
612612 "openhome" = ps: with ps; [ openhomedevice ];
613613 "opensensemap" = ps: with ps; [ opensensemap-api ];
pkgs/top-level/python-packages.nix+2
@@ -4996,6 +4996,8 @@ in {
49964996
49974997 onnx = callPackage ../development/python-modules/onnx { };
49984998
4999+ open-garage = callPackage ../development/python-modules/open-garage { };
5000+
49995001 openant = callPackage ../development/python-modules/openant { };
50005002
50015003 openapi-schema-validator = callPackage ../development/python-modules/openapi-schema-validator { };