summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/temperusb/default.nix
blob: 1b170808a1a5cd714e85f54e2f7cb50ee9a79362 (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
{
  lib,
  buildPythonPackage,
  fetchPypi,
  pyusb,
}:

buildPythonPackage rec {
  pname = "temperusb";
  version = "1.6.1";
  format = "setuptools";

  src = fetchPypi {
    inherit pname version;
    hash = "sha256-PwKHT1zzVn+nmxO/R+aK+029WaaHBo7FyVV4eQtHhbM=";
  };

  propagatedBuildInputs = [ pyusb ];

  # Module has no tests which are shipped and source is not tagged
  doCheck = false;

  pythonImportsCheck = [ "temperusb" ];

  meta = {
    description = "Library to read TEMPer USB HID devices";
    homepage = "https://github.com/padelt/temper-python";
    license = lib.licenses.gpl3Only;
    maintainers = with lib.maintainers; [ fab ];
  };
}