biome: 1.9.2 -> 1.9.3 (#349335)
[NixPkgs.git] / pkgs / development / python-modules / qcodes-contrib-drivers / default.nix
blobd6bd8c809582a0271e5dac7d2a7544472034aa36
2   lib,
3   buildPythonPackage,
4   pythonOlder,
5   fetchFromGitHub,
6   setuptools,
7   versioningit,
8   cffi,
9   qcodes,
10   packaging,
11   pandas,
12   pytestCheckHook,
13   pytest-mock,
14   pyvisa-sim,
15   stdenv,
18 buildPythonPackage rec {
19   pname = "qcodes-contrib-drivers";
20   version = "0.22.0";
21   pyproject = true;
23   disabled = pythonOlder "3.9";
25   src = fetchFromGitHub {
26     owner = "QCoDeS";
27     repo = "Qcodes_contrib_drivers";
28     rev = "refs/tags/v${version}";
29     sha256 = "sha256-/W5oC5iqYifMR3/s7aSQ2yTJNmkemkc0KVxIU0Es3zY=";
30   };
32   build-system = [
33     setuptools
34     versioningit
35   ];
37   dependencies = [
38     cffi
39     qcodes
40     packaging
41     pandas
42   ];
44   nativeCheckInputs = [
45     pytestCheckHook
46     pytest-mock
47     pyvisa-sim
48   ];
50   pythonImportsCheck = [ "qcodes_contrib_drivers" ];
52   disabledTests =
53     lib.optionals (stdenv.hostPlatform.isDarwin) [
54       # At index 13 diff: 'sour6:volt 0.29000000000000004' != 'sour6:volt 0.29'
55       "test_stability_diagram_external"
56     ]
57     ++ lib.optionals (stdenv.hostPlatform.isLinux && stdenv.hostPlatform.isAarch64) [
58       # AssertionError: assert ['outp:trig4:...9999996', ...] == ['outp:trig4:...t 0.266', ...]
59       "test_stability_diagram_external"
60     ];
62   postInstall = ''
63     export HOME="$TMPDIR"
64   '';
66   meta = {
67     description = "User contributed drivers for QCoDeS";
68     homepage = "https://github.com/QCoDeS/Qcodes_contrib_drivers";
69     changelog = "https://github.com/QCoDeS/Qcodes_contrib_drivers/releases/tag/v${version}";
70     license = lib.licenses.mit;
71     maintainers = with lib.maintainers; [ evilmav ];
72   };