Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 fetchFromGitHub, 4 buildPythonPackage, 5 setuptools-scm, 6 setuptools, 7 typing-extensions, 8 pytestCheckHook, 9 pythonOlder, 10}: 11 12buildPythonPackage rec { 13 pname = "pyvisa"; 14 version = "1.14.1"; 15 pyproject = true; 16 17 disabled = pythonOlder "3.7"; 18 19 src = fetchFromGitHub { 20 owner = "pyvisa"; 21 repo = "pyvisa"; 22 rev = "refs/tags/${version}"; 23 hash = "sha256-GKrgUK2nSZi+8oJoS45MjpU9+INEgcla9Kaw6ceNVp0="; 24 }; 25 26 nativeBuildInputs = [ 27 setuptools 28 setuptools-scm 29 ]; 30 31 propagatedBuildInputs = [ typing-extensions ]; 32 33 nativeCheckInputs = [ pytestCheckHook ]; 34 35 # Test can't find cli tool bin path correctly 36 disabledTests = [ "test_visa_info" ]; 37 38 meta = with lib; { 39 description = "Python package for support of the Virtual Instrument Software Architecture (VISA)"; 40 homepage = "https://github.com/pyvisa/pyvisa"; 41 license = licenses.mit; 42 maintainers = with maintainers; [ mvnetbiz ]; 43 }; 44}