biome: 1.9.2 -> 1.9.3 (#349335)
[NixPkgs.git] / pkgs / development / python-modules / maxcube-api / default.nix
blobf82fc861bb4eb6fa82669019ae308c5643a4cf9d
2   lib,
3   buildPythonPackage,
4   pythonOlder,
5   fetchFromGitHub,
6   pytestCheckHook,
7 }:
9 buildPythonPackage rec {
10   pname = "maxcube-api";
11   version = "0.4.3";
12   format = "setuptools";
13   disabled = pythonOlder "3.7";
15   src = fetchFromGitHub {
16     owner = "hackercowboy";
17     repo = "python-${pname}";
18     rev = "V${version}";
19     sha256 = "10k61gfpnqljf3p3qxr97xq7j67a9cr4ivd9v72hdni0znrbx6ym";
20   };
22   postPatch = ''
23     substituteInPlace setup.py --replace "license=license" "license='MIT'"
24   '';
26   nativeCheckInputs = [ pytestCheckHook ];
28   disabledTests = [
29     "testSendRadioMsgClosesConnectionOnErrorAndRetriesIfReusingConnection"
30     "testSendRadioMsgReusesConnection"
31   ];
33   pythonImportsCheck = [
34     "maxcube"
35     "maxcube.cube"
36   ];
38   meta = with lib; {
39     description = "eQ-3/ELV MAX! Cube Python API";
40     homepage = "https://github.com/hackercowboy/python-maxcube-api";
41     license = licenses.mit;
42     maintainers = [ ];
43   };