1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 pyserial,
6 pythonOlder,
7 setuptools,
8 websocket-client,
9}:
10
11buildPythonPackage {
12 pname = "pyflipper";
13 version = "0.18-unstable-2024-04-15";
14 pyproject = true;
15
16 disabled = pythonOlder "3.10";
17
18 src = fetchFromGitHub {
19 owner = "wh00hw";
20 repo = "pyFlipper";
21 # https://github.com/wh00hw/pyFlipper/issues/20
22 rev = "e8a82a25eb766fac53a2e6e5fff6505f60cf0897";
23 hash = "sha256-CQ6oVVkLxyoNoe7L0USfal1980VkfiuHc4cqXTsZ2Jc=";
24 };
25
26 build-system = [ setuptools ];
27
28 dependencies = [
29 pyserial
30 websocket-client
31 ];
32
33 # Module has no tests
34 doCheck = false;
35
36 pythonImportsCheck = [ "pyflipper" ];
37
38 meta = {
39 description = "Flipper Zero Python CLI Wrapper";
40 homepage = "https://github.com/wh00hw/pyFlipper";
41 license = lib.licenses.mit;
42 maintainers = with lib.maintainers; [ siraben ];
43 };
44}