forked from M-Labs/nix-scripts
30 lines
1.3 KiB
Nix
30 lines
1.3 KiB
Nix
{ stdenv, callPackage, fetchgit, git, python3Packages, qt5Full, binutils-or1k, llvm-or1k, llvmlite-artiq, libartiq-support, lit, outputcheck }:
|
|
|
|
let
|
|
pythonDeps = callPackage ./python-deps.nix {};
|
|
in
|
|
python3Packages.buildPythonPackage rec {
|
|
name = "artiq-${version}";
|
|
version = import ./artiq-version.nix { inherit stdenv fetchgit git; };
|
|
src = import ./artiq-src.nix { inherit fetchgit; };
|
|
preBuild = "export VERSIONEER_OVERRIDE=${version}";
|
|
propagatedBuildInputs = [ binutils-or1k llvm-or1k llvmlite-artiq qt5Full ]
|
|
++ (with pythonDeps; [ levenshtein pyqtgraph-qt5 quamash pythonparser ])
|
|
++ (with python3Packages; [ aiohttp pygit2 numpy dateutil scipy prettytable pyserial h5py pyqt5 ]);
|
|
checkInputs = [ binutils-or1k outputcheck ];
|
|
checkPhase =
|
|
''
|
|
python -m unittest discover -v artiq.test
|
|
|
|
TESTDIR=`mktemp -d`
|
|
cp --no-preserve=mode,ownership -R ${src}/artiq/test/lit $TESTDIR
|
|
LIBARTIQ_SUPPORT=${libartiq-support}/libartiq_support.so ${lit}/bin/lit -v $TESTDIR/lit
|
|
'';
|
|
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 ];
|
|
};
|
|
}
|