at master 1.3 kB view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 pytestCheckHook, 6 fetchpatch2, 7}: 8 9buildPythonPackage rec { 10 pname = "python-vxi11"; 11 version = "0.9"; 12 format = "setuptools"; 13 14 # no tests in PyPI tarball 15 src = fetchFromGitHub { 16 owner = "python-ivi"; 17 repo = "python-vxi11"; 18 rev = "v${version}"; 19 sha256 = "1xv7chp7rm0vrvbz6q57fpwhlgjz461h08q9zgmkcl2l0w96hmsn"; 20 }; 21 22 patches = [ 23 # set of patches from python-ivi/python-vxi11#47 24 25 # Fix deprecation warning 26 (fetchpatch2 { 27 url = "https://github.com/python-ivi/python-vxi11/commit/00722b1b8810ac38bfb47e8c49437055b600dfff.patch?full_index=1"; 28 hash = "sha256-fZDhg578UY/Q/2li1EmL5WTPx1OUfyebzvvBVK/IyDU="; 29 }) 30 31 # Removes nose dependency 32 (fetchpatch2 { 33 url = "https://github.com/python-ivi/python-vxi11/commit/a8ad324d645d6f7215f207f2cc2988dc49859698.patch?full_index=1"; 34 hash = "sha256-nkH6ww4jBypEmZeatEb8fpFTB7x/AMppeEmuH9a4v6I="; 35 }) 36 ]; 37 38 nativeCheckInputs = [ pytestCheckHook ]; 39 40 meta = with lib; { 41 description = "VXI-11 driver for controlling instruments over Ethernet"; 42 mainProgram = "vxi11-cli"; 43 homepage = "https://github.com/python-ivi/python-vxi11"; 44 license = licenses.mit; 45 maintainers = with maintainers; [ bgamari ]; 46 }; 47}