Merge pull request #138833 from mweinelt/python/maxcube-api

This commit is contained in:
Martin Weinelt 2021-09-22 18:33:13 +02:00 committed by GitHub
commit 63ec2613bd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 46 additions and 1 deletions

View file

@ -0,0 +1,42 @@
{ lib
, buildPythonPackage
, pythonOlder
, fetchFromGitHub
, python
}:
buildPythonPackage rec {
pname = "maxcube-api";
version = "0.4.3";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "hackercowboy";
repo = "python-${pname}";
rev = "V${version}";
sha256 = "10k61gfpnqljf3p3qxr97xq7j67a9cr4ivd9v72hdni0znrbx6ym";
};
postPatch = ''
substituteInPlace setup.py --replace "license=license" "license='MIT'"
'';
pythonImportsCheck = [
"maxcube"
"maxcube.cube"
];
checkPhase = ''
runHook preCheck
${python.interpreter} -m unittest discover
runHook postCheck
'';
meta = with lib; {
description = "eQ-3/ELV MAX! Cube Python API";
homepage = "https://github.com/hackercowboy/python-maxcube-api";
license = licenses.mit;
maintainers = with maintainers; [ hexa ];
};
}

View file

@ -493,7 +493,7 @@
"marytts" = ps: with ps; [ ]; # missing inputs: speak2mary
"mastodon" = ps: with ps; [ mastodon-py ];
"matrix" = ps: with ps; [ matrix-client ];
"maxcube" = ps: with ps; [ ]; # missing inputs: maxcube-api
"maxcube" = ps: with ps; [ maxcube-api ];
"mazda" = ps: with ps; [ pymazda ];
"mcp23017" = ps: with ps; [ ]; # missing inputs: RPi.GPIO adafruit-circuitpython-mcp230xx
"media_extractor" = ps: with ps; [ aiohttp-cors youtube-dl-light ];

View file

@ -486,6 +486,7 @@ in with py.pkgs; buildPythonApplication rec {
"mailbox"
"manual"
"manual_mqtt"
"maxcube"
"mazda"
"media_player"
"media_source"

View file

@ -4492,6 +4492,8 @@ in {
mautrix-appservice = self.mautrix; # alias 2019-12-28
maxcube-api = callPackage ../development/python-modules/maxcube-api { };
maxminddb = callPackage ../development/python-modules/maxminddb { };
maya = callPackage ../development/python-modules/maya { };