2019-01-18 09:49:27 +08:00
|
|
|
{ stdenv, git, fetchFromGitHub, fetchsvn, python3Packages, qt5Full, binutils-or1k, llvm-or1k, llvmlite, python3 }:
|
2016-03-06 23:54:07 +08:00
|
|
|
|
|
|
|
let
|
|
|
|
|
2018-08-16 09:39:21 +08:00
|
|
|
levenshtein = python3Packages.buildPythonPackage rec {
|
2016-03-06 23:54:07 +08:00
|
|
|
name = "levenshtein";
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "ztane";
|
|
|
|
repo = "python-Levenshtein";
|
|
|
|
rev = "854e61a05bb8b750e990add96df412cd5448b75e";
|
|
|
|
sha256 = "1yf21kg1g2ivm5a4dx1jra9k0c33np54d0hk5ymnfyc4f6pg386q";
|
|
|
|
};
|
|
|
|
doCheck = false;
|
|
|
|
};
|
|
|
|
|
2018-08-16 09:39:21 +08:00
|
|
|
pythonparser = python3Packages.buildPythonPackage rec {
|
2016-03-06 23:54:07 +08:00
|
|
|
name = "pythonparser";
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "m-labs";
|
|
|
|
repo = "pythonparser";
|
2018-08-19 21:18:40 +08:00
|
|
|
rev = "5b391fe86f43bb9f4f96c5bc0532e2a112db2936";
|
|
|
|
sha256 = "1gw1fk4y2l6bwq0fg2a9dfc1rvq8cv492dyil96amjdhsxvnx35b";
|
2016-03-06 23:54:07 +08:00
|
|
|
};
|
2018-08-16 10:06:03 +08:00
|
|
|
propagatedBuildInputs = with python3Packages; [ regex ];
|
2016-03-06 23:54:07 +08:00
|
|
|
};
|
|
|
|
|
2018-08-16 09:39:21 +08:00
|
|
|
asyncserial = python3Packages.buildPythonPackage rec {
|
2018-08-12 21:20:02 +08:00
|
|
|
name = "asyncserial";
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "m-labs";
|
|
|
|
repo = "asyncserial";
|
|
|
|
rev = "d95bc1d6c791b0e9785935d2f62f628eb5cdf98d";
|
|
|
|
sha256 = "0yzkka9jk3612v8gx748x6ziwykq5lr7zmr9wzkcls0v2yilqx9k";
|
|
|
|
};
|
2018-08-16 10:06:03 +08:00
|
|
|
propagatedBuildInputs = with python3Packages; [ pyserial ];
|
2016-03-06 23:54:07 +08:00
|
|
|
doCheck = false;
|
|
|
|
};
|
|
|
|
|
2018-08-16 09:39:21 +08:00
|
|
|
quamash = python3Packages.buildPythonPackage rec {
|
2016-03-06 23:54:07 +08:00
|
|
|
name = "quamash";
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "harvimt";
|
|
|
|
repo = "quamash";
|
2019-01-14 00:03:14 +08:00
|
|
|
rev = "e513b30f137415c5e098602fa383e45debab85e7";
|
|
|
|
sha256 = "117rp9r4lz0kfz4dmmpa35hp6nhbh6b4xq0jmgvqm68g9hwdxmqa";
|
2016-03-06 23:54:07 +08:00
|
|
|
};
|
2018-08-16 10:06:03 +08:00
|
|
|
propagatedBuildInputs = with python3Packages; [ pyqt5 ];
|
2016-03-06 23:54:07 +08:00
|
|
|
doCheck = false;
|
|
|
|
};
|
|
|
|
|
2018-08-16 09:53:15 +08:00
|
|
|
pyqtgraph-qt5 = python3Packages.buildPythonPackage rec {
|
|
|
|
name = "pyqtgraph_qt5-${version}";
|
|
|
|
version = "0.10.0";
|
|
|
|
doCheck = false;
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "pyqtgraph";
|
|
|
|
repo = "pyqtgraph";
|
|
|
|
rev = "1426e334e1d20542400d77c72c132b04c6d17ddb";
|
|
|
|
sha256 = "1079haxyr316jf0wpirxdj0ry6j8mr16cqr0dyyrd5cnxwl7zssh";
|
|
|
|
};
|
|
|
|
propagatedBuildInputs = with python3Packages; [ scipy numpy pyqt5 pyopengl ];
|
|
|
|
};
|
|
|
|
|
2016-03-06 23:54:07 +08:00
|
|
|
in
|
|
|
|
|
2018-08-16 09:39:21 +08:00
|
|
|
python3Packages.buildPythonPackage rec {
|
2018-08-17 12:19:38 +08:00
|
|
|
name = "artiq";
|
2019-02-14 00:08:43 +08:00
|
|
|
src = builtins.filterSource
|
|
|
|
(path: type: type != "directory" || builtins.baseNameOf path != ".nix")
|
|
|
|
./../..;
|
2019-01-18 09:49:27 +08:00
|
|
|
buildInputs = [ git ];
|
2018-08-16 10:06:23 +08:00
|
|
|
propagatedBuildInputs = with python3Packages; [ binutils-or1k llvm-or1k llvmlite levenshtein pyqtgraph-qt5 aiohttp pygit2 pythonparser numpy dateutil quamash scipy prettytable pyserial asyncserial h5py cython regex qt5Full pyqt5 ];
|
2019-01-21 23:42:10 +08:00
|
|
|
checkPhase = "python -m unittest discover -v artiq.test";
|
2016-03-06 23:54:07 +08:00
|
|
|
meta = with stdenv.lib; {
|
2019-01-18 10:28:51 +08:00
|
|
|
description = "A leading-edge control system for quantum information experiments";
|
2016-03-06 23:54:07 +08:00
|
|
|
homepage = https://m-labs/artiq;
|
2018-08-16 00:21:51 +08:00
|
|
|
license = licenses.lgpl3;
|
2019-01-21 22:53:57 +08:00
|
|
|
#maintainers = [ maintainers.sb0 ];
|
2016-03-06 23:54:07 +08:00
|
|
|
platforms = [ "x86_64-linux" ];
|
|
|
|
};
|
|
|
|
}
|