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