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