summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/pyblackbird/default.nix
blob: efc12b5045fccab54d70405122f2088e5138371d (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
{
  lib,
  buildPythonPackage,
  fetchFromGitHub,
  pyserial,
  pyserial-asyncio,
}:

buildPythonPackage rec {
  pname = "pyblackbird";
  version = "0.6";
  format = "setuptools";

  src = fetchFromGitHub {
    owner = "koolsb";
    repo = "pyblackbird";
    tag = version;
    hash = "sha256-+ehzrr+RrwFKOOuxBq3+mwnuMPxZFV4QTZG1IRgsbLc=";
  };

  propagatedBuildInputs = [
    pyserial
    pyserial-asyncio
  ];

  # Test setup try to create a serial port
  doCheck = false;

  pythonImportsCheck = [ "pyblackbird" ];

  meta = {
    description = "Python implementation for Monoprice Blackbird units";
    homepage = "https://github.com/koolsb/pyblackbird";
    changelog = "https://github.com/koolsb/pyblackbird/releases/tag/${version}";
    license = with lib.licenses; [ mit ];
    maintainers = with lib.maintainers; [ fab ];
  };
}