about summary refs log tree commit diff
path: root/pkgs/development/python-modules/sisyphus-control/default.nix
blob: 1ca675582ca7a2ee28459436df4452329c77baf7 (plain) (blame)
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
{
  lib,
  aiohttp,
  buildPythonPackage,
  fetchFromGitHub,
  netifaces,
  python-engineio,
  python-socketio,
  pythonOlder,
  pythonRelaxDepsHook,
}:

buildPythonPackage rec {
  pname = "sisyphus-control";
  version = "3.1.3";
  format = "setuptools";

  disabled = pythonOlder "3.8";

  src = fetchFromGitHub {
    owner = "jkeljo";
    repo = "sisyphus-control";
    rev = "refs/tags/v${version}";
    hash = "sha256-FbZWvsm2NT9a7TgHKWh/LHPsse6NBLK2grlOtHDbV2Y=";
  };

  pythonRelaxDeps = [
    "python-engineio"
    "python-socketio"
  ];

  nativeBuildInputs = [ pythonRelaxDepsHook ];

  propagatedBuildInputs = [
    aiohttp
    netifaces
    python-engineio
    python-socketio
  ];

  # Module has no tests
  doCheck = false;

  pythonImportsCheck = [ "sisyphus_control" ];

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