summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/sisyphus-control/default.nix
blob: 98d4ca6884c2fa2f21f8bbd474bf4d93d0a7c2dd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
{
  lib,
  aiohttp,
  buildPythonPackage,
  fetchFromGitHub,
  fetchpatch2,
  netifaces,
  poetry-core,
  python-engineio-v3,
  python-socketio-v4,
}:

buildPythonPackage rec {
  pname = "sisyphus-control";
  version = "3.1.4";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "jkeljo";
    repo = "sisyphus-control";
    tag = "v${version}";
    hash = "sha256-1/trJ/mfiXljNt7ZIBwQ45mIBbqg68e29lvVsPDPzoU=";
  };

  patches = [
    # https://github.com/jkeljo/sisyphus-control/pull/9
    (fetchpatch2 {
      name = "specify-build-system.patch";
      url = "https://github.com/jkeljo/sisyphus-control/commit/dd48079e03a53cdb3af721de0d307209286c38f0.patch";
      hash = "sha256-573YLPrNbbMXSrZ3gK8cmHmuk2+UeggcKL/+eo4pgrs=";
    })
  ];

  build-system = [ poetry-core ];

  dependencies = [
    aiohttp
    netifaces
    python-engineio-v3
    python-socketio-v4
  ];

  # Module has no tests
  doCheck = false;

  pythonImportsCheck = [ "sisyphus_control" ];

  meta = {
    description = "Control your Sisyphus Kinetic Art Table";
    homepage = "https://github.com/jkeljo/sisyphus-control";
    changelog = "https://github.com/jkeljo/sisyphus-control/blob/${src.rev}/CHANGELOG.rst";
    license = lib.licenses.mit;
    maintainers = with lib.maintainers; [ fab ];
  };
}