Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / qcodes-contrib-drivers / default.nix
blobe26745e77566ec9d64c38bcbe9a4f400d3849911
1 { lib
2 , fetchFromGitHub
3 , pythonOlder
4 , buildPythonPackage
5 , setuptools
6 , versioningit
7 , qcodes
8 , packaging
9 , pytestCheckHook
10 , pytest-mock
11 , pyvisa-sim
14 buildPythonPackage rec {
15   pname = "qcodes-contrib-drivers";
16   version = "0.18.0";
18   disabled = pythonOlder "3.8";
19   format = "pyproject";
21   src = fetchFromGitHub {
22     owner = "QCoDeS";
23     repo = "Qcodes_contrib_drivers";
24     rev = "v${version}";
25     sha256 = "sha256-hg3jSiuOkiuOInnUzzlKtBeoP5zkCDBQ3xP6KCwq+lU=";
26   };
28   nativeBuildInputs = [ setuptools versioningit ];
30   propagatedBuildInputs = [
31     qcodes
32     packaging
33   ];
35   nativeCheckInputs = [
36     pytestCheckHook
37     pytest-mock
38     pyvisa-sim
39   ];
41   pythonImportsCheck = [ "qcodes_contrib_drivers" ];
43   # should be fixed starting with 0.19.0, remove at next release
44   disabledTestPaths = [
45     "qcodes_contrib_drivers/tests/test_Keysight_M3201A.py"
46   ];
48   postInstall = ''
49     export HOME="$TMPDIR"
50   '';
52   meta = with lib; {
53     description = "User contributed drivers for QCoDeS";
54     homepage = "https://github.com/QCoDeS/Qcodes_contrib_drivers";
55     license = licenses.mit;
56     maintainers = with maintainers; [ evilmav ];
57   };