summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/epson-projector/default.nix
blob: 6e14746b2c2a7c73bd696282fc47d18486d6a458 (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
{
  lib,
  buildPythonPackage,
  fetchPypi,
  aiohttp,
  pyserial-asyncio-fast,
  setuptools,
}:

buildPythonPackage rec {
  pname = "epson-projector";
  version = "0.6.0";
  pyproject = true;

  src = fetchPypi {
    pname = "epson_projector";
    inherit version;
    hash = "sha256-/9Nc3xOxnXFfTsS8s83MXTkVAhqLwrKnmfR/E87s+Bk=";
  };

  build-system = [ setuptools ];

  dependencies = [
    aiohttp
    pyserial-asyncio-fast
  ];

  # tests need real device
  doCheck = false;

  pythonImportsCheck = [
    "epson_projector"
    "epson_projector.const"
    "epson_projector.projector_http"
    "epson_projector.projector_serial"
    "epson_projector.projector_tcp"
  ];

  meta = {
    description = "Epson projector support for Python";
    homepage = "https://github.com/pszafer/epson_projector";
    changelog = "https://github.com/pszafer/epson_projector/releases/tag/v.${version}";
    license = lib.licenses.mit;
    maintainers = with lib.maintainers; [ dotlambda ];
  };
}