1{
2 lib,
3 fetchFromGitHub,
4 buildPythonPackage,
5 pyusb,
6}:
7
8buildPythonPackage rec {
9 pname = "usbtmc";
10 version = "0.8";
11 format = "setuptools";
12
13 src = fetchFromGitHub {
14 owner = "python-ivi";
15 repo = "python-usbtmc";
16 rev = "v${version}";
17 hash = "sha256-69kqBTqnVqdWC2mqlXylzb9VkdhwTGZI0Ykf6lqbypI=";
18 };
19
20 propagatedBuildInputs = [ pyusb ];
21
22 meta = with lib; {
23 description = "Python implementation of the USBTMC instrument control protocol";
24 homepage = "http://alexforencich.com/wiki/en/python-usbtmc/start";
25 license = licenses.mit;
26 maintainers = with maintainers; [ bjornfor ];
27 };
28}