about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/vxi11/default.nix
blob: ff88abb41453c69b641d63d4cbc9fe15630e9b80 (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
{ lib, buildPythonPackage, fetchFromGitHub, nose }:

buildPythonPackage rec {
  pname = "python-vxi11";
  version = "0.9";

  # no tests in PyPI tarball
  src = fetchFromGitHub {
    owner = "python-ivi";
    repo = pname;
    rev = "v${version}";
    sha256 = "1xv7chp7rm0vrvbz6q57fpwhlgjz461h08q9zgmkcl2l0w96hmsn";
  };

  nativeCheckInputs = [ nose ];
  checkPhase = ''
    nosetests
  '';

  meta = with lib; {
    description = "VXI-11 driver for controlling instruments over Ethernet";
    mainProgram = "vxi11-cli";
    homepage = "https://github.com/python-ivi/python-vxi11";
    license = licenses.mit;
    maintainers = with maintainers; [ bgamari ];
  };
}