nixpkgs/pkgs/development/python-modules/python-motionmount/default.nix

37 lines
792 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
pythonOlder,
setuptools,
}:
buildPythonPackage rec {
pname = "python-motionmount";
version = "1.0.1";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "vogelsproducts";
repo = "python-MotionMount";
rev = "refs/tags/${version}";
hash = "sha256-F/nFo/PivnIogVwEh6MsQZQWg95kQMr6pZuf0SZa3n4=";
};
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 ];
};
}