nix-scripts/artiq/pkgs/artiq.nix

23 lines
990 B
Nix
Raw Normal View History

2019-02-19 21:18:38 +08:00
{ stdenv, callPackage, fetchgit, python3Packages, qt5Full, binutils-or1k, llvm-or1k, llvmlite-artiq }:
let
2019-02-19 21:18:38 +08:00
pythonDeps = callPackage ./python-deps.nix {};
in
2019-02-19 21:18:38 +08:00
python3Packages.buildPythonPackage rec {
name = "artiq-${version}";
version = import ./artiq-version.nix;
src = import ./artiq-src.nix { inherit fetchgit; };
preBuild = "export VERSIONEER_OVERRIDE=${version}";
2019-02-21 19:32:22 +08:00
propagatedBuildInputs = [ binutils-or1k llvm-or1k llvmlite-artiq qt5Full ]
2019-02-19 21:18:38 +08:00
++ (with pythonDeps; [ levenshtein pyqtgraph-qt5 quamash pythonparser asyncserial ])
2019-02-21 19:32:22 +08:00
++ (with python3Packages; [ aiohttp pygit2 numpy dateutil scipy prettytable pyserial h5py pyqt5 ]);
2019-02-19 21:18:38 +08:00
checkPhase = "python -m unittest discover -v artiq.test";
2019-02-25 23:54:36 +08:00
doCheck = false;
2019-02-19 21:18:38 +08:00
meta = with stdenv.lib; {
description = "A leading-edge control system for quantum information experiments";
homepage = https://m-labs/artiq;
license = licenses.lgpl3;
#maintainers = [ maintainers.sb0 ];
};
}