2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
2024-07-27 06:49:29 +00:00
|
|
|
pytestCheckHook,
|
|
|
|
fetchpatch2,
|
2024-06-05 15:53:02 +00:00
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
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";
|
|
|
|
};
|
|
|
|
|
2024-07-27 06:49:29 +00:00
|
|
|
patches = [
|
|
|
|
# set of patches from python-ivi/python-vxi11#47
|
|
|
|
|
|
|
|
# Fix deprecation warning
|
|
|
|
(fetchpatch2 {
|
|
|
|
url = "https://github.com/python-ivi/python-vxi11/commit/00722b1b8810ac38bfb47e8c49437055b600dfff.patch?full_index=1";
|
|
|
|
hash = "sha256-fZDhg578UY/Q/2li1EmL5WTPx1OUfyebzvvBVK/IyDU=";
|
|
|
|
})
|
|
|
|
|
|
|
|
# Removes nose dependency
|
|
|
|
(fetchpatch2 {
|
|
|
|
url = "https://github.com/python-ivi/python-vxi11/commit/a8ad324d645d6f7215f207f2cc2988dc49859698.patch?full_index=1";
|
|
|
|
hash = "sha256-nkH6ww4jBypEmZeatEb8fpFTB7x/AMppeEmuH9a4v6I=";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "VXI-11 driver for controlling instruments over Ethernet";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "vxi11-cli";
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://github.com/python-ivi/python-vxi11";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ bgamari ];
|
|
|
|
};
|
|
|
|
}
|