summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/dt8852/default.nix
blob: 521898d00a96b452579515d99db9793f9c3e33d7 (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,
  fetchPypi,
  buildPythonPackage,
  setuptools,
  pyserial,
}:

buildPythonPackage rec {
  pname = "dt8852";
  version = "1.1.0";
  pyproject = true;

  # Not using Codeberg because there's no tagged release there.
  src = fetchPypi {
    inherit pname version;
    hash = "sha256-3WiHJQnlP39CGzxu/sZ1jWcP40tyr2G62H4yYuwS0wA=";
  };

  build-system = [ setuptools ];

  dependencies = [
    pyserial
  ];

  # No tests available on PyPi and Codeberg source.
  doCheck = false;

  pythonImportsCheck = [ "dt8852" ];

  meta = {
    description = "Dt8852 is a cross-platform Python package and module for reading and controlling CEM DT-8852 and equivalent Sound Level Meter and Data Logger devices";
    homepage = "https://codeberg.org/randysimons/dt8852";
    license = lib.licenses.gpl3Only;
    maintainers = with lib.maintainers; [ drupol ];
    mainProgram = "dt8852";
  };
}