1{ lib 2, fetchFromGitHub 3, buildPythonPackage 4, setuptools-scm 5, setuptools 6, typing-extensions 7, pytestCheckHook 8}: 9 10buildPythonPackage rec { 11 pname = "pyvisa"; 12 version = "1.12.0"; 13 14 src = fetchFromGitHub { 15 owner = "pyvisa"; 16 repo = "pyvisa"; 17 rev = "refs/tags/${version}"; 18 hash = "sha256-2khTfj0RRna9YDPOs5kQHHhkeMwv3kTtGyDBYnu+Yhw="; 19 }; 20 21 nativeBuildInputs = [ 22 setuptools-scm 23 ]; 24 25 propagatedBuildInputs = [ 26 typing-extensions 27 setuptools 28 ]; 29 30 checkInputs = [ 31 pytestCheckHook 32 ]; 33 34 # Test can't find cli tool bin path correctly 35 disabledTests = [ 36 "test_visa_info" 37 ]; 38 39 postConfigure = '' 40 export SETUPTOOLS_SCM_PRETEND_VERSION="v${version}" 41 ''; 42 43 meta = with lib; { 44 description = "Python package for support of the Virtual Instrument Software Architecture (VISA)"; 45 homepage = "https://github.com/pyvisa/pyvisa"; 46 license = licenses.mit; 47 maintainers = with maintainers; [ mvnetbiz ]; 48 }; 49}