2021-01-11 08:54:33 +01:00
|
|
|
{ lib, stdenv, buildPythonPackage, fetchFromGitHub, nose }:
|
2018-03-19 16:01:08 +01:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "python-vxi11";
|
|
|
|
version = "0.9";
|
|
|
|
|
2018-04-04 09:44:52 +02:00
|
|
|
# no tests in PyPI tarball
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "python-ivi";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "1xv7chp7rm0vrvbz6q57fpwhlgjz461h08q9zgmkcl2l0w96hmsn";
|
2018-03-19 16:01:08 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
checkInputs = [ nose ];
|
|
|
|
checkPhase = ''
|
|
|
|
nosetests
|
|
|
|
'';
|
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2018-03-19 16:01:08 +01:00
|
|
|
description = "VXI-11 driver for controlling instruments over Ethernet";
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://github.com/python-ivi/python-vxi11";
|
2018-03-19 16:01:08 +01:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ bgamari ];
|
|
|
|
};
|
|
|
|
}
|