nixpkgs/pkgs/development/python-modules/vxi11/default.nix
stuebinm ff1a94e523 treewide: add meta.mainProgram to packages with a single binary
The nixpkgs-unstable channel's programs.sqlite was used to identify
packages producing exactly one binary, and these automatically added
to their package definitions wherever possible.
2024-03-19 03:14:51 +01:00

28 lines
668 B
Nix

{ 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 ];
};
}