Skip to content

Commit

Permalink
Merge pull request NixOS#301935 from fabaff/python-motionmount
Browse files Browse the repository at this point in the history
python312Packages.python-motionmount: init at 1.0.0
  • Loading branch information
fabaff authored Apr 6, 2024
2 parents 0ed2fa2 + a2d83e5 commit fe4295b
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 1 deletion.
36 changes: 36 additions & 0 deletions pkgs/development/python-modules/python-motionmount/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
{
lib,
buildPythonPackage,
fetchFromGitHub,
pythonOlder,
setuptools,
}:

buildPythonPackage rec {
pname = "python-motionmount";
version = "1.0.0";
pyproject = true;

disabled = pythonOlder "3.7";

src = fetchFromGitHub {
owner = "vogelsproducts";
repo = "python-MotionMount";
rev = "refs/tags/${version}";
hash = "sha256-GXgshCARH4VPYHIIeWXwOCRmKgCyel4ydj/oKUWuyUM=";
};

build-system = [ setuptools ];

# Module has no tests
doCheck = false;

pythonImportsCheck = [ "motionmount" ];

meta = with lib; {
description = "Module to control the TVM7675 Pro (Signature) series of MotionMount";
homepage = "https://github.com/vogelsproducts/python-MotionMount";
license = licenses.mit;
maintainers = with maintainers; [ fab ];
};
}
4 changes: 3 additions & 1 deletion pkgs/servers/home-assistant/component-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3212,7 +3212,8 @@
motioneye-client
];
"motionmount" = ps: with ps; [
]; # missing inputs: python-MotionMount
python-motionmount
];
"mpd" = ps: with ps; [
mpd2
];
Expand Down Expand Up @@ -6282,6 +6283,7 @@
"mopeka"
"motion_blinds"
"motioneye"
"motionmount"
"mqtt"
"mqtt_eventstream"
"mqtt_json"
Expand Down
2 changes: 2 additions & 0 deletions pkgs/top-level/python-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -9965,6 +9965,8 @@ self: super: with self; {
inherit (pkgs) memcached;
};

python-motionmount = callPackage ../development/python-modules/python-motionmount { };

python-otbr-api = callPackage ../development/python-modules/python-otbr-api { };

python-openems = callPackage ../development/python-modules/python-openems { };
Expand Down

0 comments on commit fe4295b

Please sign in to comment.