about summary refs log tree commit diff
path: root/pkgs/development/python-modules/usbtmc/default.nix
blob: 9220c3acde9e2e541f611e70f6b117dd7fd8d8be (plain) (blame)
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
{
  lib,
  fetchFromGitHub,
  buildPythonPackage,
  pyusb,
}:

buildPythonPackage rec {
  pname = "usbtmc";
  version = "0.8";
  format = "setuptools";

  src = fetchFromGitHub {
    owner = "python-ivi";
    repo = "python-usbtmc";
    rev = "v${version}";
    hash = "sha256-69kqBTqnVqdWC2mqlXylzb9VkdhwTGZI0Ykf6lqbypI=";
  };

  propagatedBuildInputs = [ pyusb ];

  meta = with lib; {
    description = "Python implementation of the USBTMC instrument control protocol";
    homepage = "http://alexforencich.com/wiki/en/python-usbtmc/start";
    license = licenses.mit;
    maintainers = with maintainers; [ bjornfor ];
  };
}