at master 1.0 kB view raw
1{ 2 lib, 3 fetchPypi, 4 pythonOlder, 5 buildPythonPackage, 6 pyvisa, 7 pyyaml, 8 stringparser, 9 typing-extensions, 10 pytestCheckHook, 11 setuptools, 12 setuptools-scm, 13 wheel, 14}: 15 16buildPythonPackage rec { 17 pname = "pyvisa-sim"; 18 version = "0.7.1"; 19 pyproject = true; 20 21 src = fetchPypi { 22 pname = "pyvisa_sim"; 23 inherit version; 24 hash = "sha256-EbEGWOIVJwjuraDIZifYlMTRFIQxLwLTzzhRlrS8hw8="; 25 }; 26 27 build-system = [ 28 setuptools 29 setuptools-scm 30 ]; 31 32 dependencies = [ 33 pyvisa 34 pyyaml 35 stringparser 36 typing-extensions 37 ]; 38 39 nativeCheckInputs = [ pytestCheckHook ]; 40 41 pythonImportsCheck = [ "pyvisa_sim" ]; 42 43 # should be fixed after 0.5.1, remove at next release 44 disabledTestPaths = [ "pyvisa_sim/testsuite/test_all.py" ]; 45 46 meta = with lib; { 47 description = "Simulated backend for PyVISA implementing TCPIP, GPIB, RS232, and USB resources"; 48 homepage = "https://pyvisa.readthedocs.io/projects/pyvisa-sim/en/latest/"; 49 license = licenses.mit; 50 maintainers = with maintainers; [ evilmav ]; 51 }; 52}