summaryrefslogtreecommitdiffstats
path: root/pkgs/development/python-modules/binho-host-adapter/default.nix
blob: 97ce7bfe5cf8528bec4570f1d5080d8001a5f4ce (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
{
  lib,
  buildPythonPackage,
  fetchPypi,
  setuptools,
  pyserial,
}:

buildPythonPackage (finalAttrs: {
  pname = "binho-host-adapter";
  version = "0.1.6";
  pyproject = true;

  __structuredAttrs = true;

  src = fetchPypi {
    inherit (finalAttrs) pname version;
    hash = "sha256-Hm2nqE4gjBO19IkGbwV3S/8dWT0PW/HKFJwrjoPq6FY=";
  };

  build-system = [ setuptools ];

  dependencies = [ pyserial ];

  # Project has no tests
  doCheck = false;
  pythonImportsCheck = [ "binhoHostAdapter" ];

  meta = {
    description = "Python library for Binho Multi-Protocol USB Host Adapters";
    homepage = "https://github.com/adafruit/Adafruit_Python_PlatformDetect";
    license = lib.licenses.mit;
    maintainers = with lib.maintainers; [ fab ];
  };
})