mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-19 12:14:10 +00:00
33afbf39f6
checkInputs used to be added to nativeBuildInputs. Now we have nativeCheckInputs to do that instead. Doing this treewide change allows to keep hashes identical to before the introduction of nativeCheckInputs.
27 lines
637 B
Nix
27 lines
637 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";
|
|
homepage = "https://github.com/python-ivi/python-vxi11";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ bgamari ];
|
|
};
|
|
}
|