git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #146429 from fabaff/motionblinds
commit038e06ec8f9c5dd4e8a1cb306a28df8218a901f5 authorMartin Weinelt <mweinelt@users.noreply.github.com> dateWed 17 Nov 2021, 23:04 (5 years ago) parent43f0be91706b2e
4 files changed+43−1
pkgs/development/python-modules/motionblinds/default.nix+39 pkgs/servers/home-assistant/component-packages.nix+1−1 pkgs/servers/home-assistant/default.nix+1 pkgs/top-level/python-packages.nix+2
pkgs/development/python-modules/motionblinds/default.nixnew file+39
@@ -0,0 +1,39 @@
1+{ lib
2+, buildPythonPackage
3+, fetchFromGitHub
4+, pycryptodomex
5+, pythonOlder
6+}:
7+
8+buildPythonPackage rec {
9+ pname = "motionblinds";
10+ version = "0.5.8.2";
11+ format = "setuptools";
12+
13+ disabled = pythonOlder "3.7";
14+
15+ src = fetchFromGitHub {
16+ owner = "starkillerOG";
17+ repo = "motion-blinds";
18+ rev = version;
19+ sha256 = "6aSwUuH5IpfcuVGXWVmb0DHglsUtGh/ATOe6iih6fXk=";
20+ };
21+
22+ propagatedBuildInputs = [
23+ pycryptodomex
24+ ];
25+
26+ # Project has no tests
27+ doCheck = false;
28+
29+ pythonImportsCheck = [
30+ "motionblinds"
31+ ];
32+
33+ meta = with lib; {
34+ description = "Python library for interfacing with Motion Blinds";
35+ homepage = "https://github.com/starkillerOG/motion-blinds";
36+ license = with licenses; [ mit ];
37+ maintainers = with maintainers; [ fab ];
38+ };
39+}
pkgs/servers/home-assistant/component-packages.nix+1−1
@@ -533,7 +533,7 @@
533533 "mold_indicator" = ps: with ps; [ ];
534534 "monoprice" = ps: with ps; [ ]; # missing inputs: pymonoprice
535535 "moon" = ps: with ps; [ ];
536− "motion_blinds" = ps: with ps; [ aiohttp-cors ifaddr ]; # missing inputs: motionblinds
536+ "motion_blinds" = ps: with ps; [ aiohttp-cors ifaddr motionblinds ];
537537 "motioneye" = ps: with ps; [ aiohttp-cors motioneye-client ];
538538 "mpchc" = ps: with ps; [ ];
539539 "mpd" = ps: with ps; [ mpd2 ];
pkgs/servers/home-assistant/default.nix+1
@@ -520,6 +520,7 @@ in with py.pkgs; buildPythonApplication rec {
520520 "modbus"
521521 "mold_indicator"
522522 "moon"
523+ "motion_blinds"
523524 "motioneye"
524525 "mqtt"
525526 "mqtt_eventstream"
pkgs/top-level/python-packages.nix+2
@@ -4874,6 +4874,8 @@ in {
48744874
48754875 mortgage = callPackage ../development/python-modules/mortgage { };
48764876
4877+ motionblinds = callPackage ../development/python-modules/motionblinds { };
4878+
48774879 motioneye-client = callPackage ../development/python-modules/motioneye-client { };
48784880
48794881 moto = callPackage ../development/python-modules/moto { };