depot/third_party/nixpkgs/pkgs/development/python-modules/qcodes-loop/default.nix
Default email 2c76a4cb41 Project import generated by Copybara.
GitOrigin-RevId: c757e9bd77b16ca2e03c89bf8bc9ecb28e0c06ad
2023-11-16 04:20:00 +00:00

97 lines
1.5 KiB
Nix

{ lib
, stdenv
, buildPythonPackage
, fetchPypi
, h5py
, hickle
, hypothesis
, ipython
, lazy-loader
, matplotlib
, numpy
, pandas
, pyqt5
, pyqtgraph
, pytest-mock
, pytest-xdist
, pytestCheckHook
, pythonOlder
, qcodes
, setuptools
, slack-sdk
, versioningit
, wheel
, xarray
}:
buildPythonPackage rec {
pname = "qcodes-loop";
version = "0.1.2";
pyproject = true;
disabled = pythonOlder "3.8";
src = fetchPypi {
inherit version;
pname = "qcodes_loop";
hash = "sha256-TizNSC49n4Xc2BmJNziARlVXYQxp/LtwmKpgqQkQ3a8=";
};
nativeBuildInputs = [
setuptools
versioningit
wheel
];
propagatedBuildInputs = [
qcodes
h5py
lazy-loader
matplotlib
numpy
pandas
xarray
hickle
ipython
];
passthru.optional-dependencies = {
qtplot = [
pyqtgraph
];
slack = [
slack-sdk
];
};
nativeCheckInputs = [
pytestCheckHook
hypothesis
pytest-xdist
pytest-mock
pyqt5
];
pythonImportsCheck = [
"qcodes_loop"
];
postInstall = ''
export HOME="$TMPDIR"
'';
disabledTests = [
# AssertionError: False is not true
"TestHDF5_Format"
];
meta = with lib; {
description = "Features previously in QCoDeS";
homepage = "https://github.com/QCoDeS/Qcodes_loop";
changelog = "https://github.com/QCoDeS/Qcodes_loop/releases/tag/v${version}";
license = licenses.mit;
maintainers = with maintainers; [ evilmav ];
# Some tests fail on this platform
broken = stdenv.isDarwin;
};
}