Compare commits
3 Commits
96154475bc
...
84e7732255
Author | SHA1 | Date |
---|---|---|
Sebastien Bourdeauducq | 84e7732255 | |
Sebastien Bourdeauducq | e0ed1118cd | |
Sebastien Bourdeauducq | 52c89a9637 |
|
@ -60,7 +60,6 @@ in
|
|||
pythonOptions = {
|
||||
propagatedBuildInputs = [ artiq ];
|
||||
postPatch = ''
|
||||
ls
|
||||
substituteInPlace lda/hidapi.py \
|
||||
--replace "hidapi_lib_path = None"\
|
||||
"hidapi_lib_path = '${hidapi}/lib/libhidapi-libusb.so.0'"
|
||||
|
@ -105,4 +104,34 @@ in
|
|||
# no unit tests without hardware so do a simple smoke test
|
||||
checkPhase = "python -m hut2.aqctl_hut2 --version";
|
||||
};
|
||||
})
|
||||
}) // rec {
|
||||
toptica-lasersdk = pkgs.python3Packages.buildPythonPackage rec {
|
||||
version = "2.0.0";
|
||||
name = "toptica-lasersdk-${version}";
|
||||
format = "wheel";
|
||||
src = pkgs.fetchurl {
|
||||
url = "https://files.pythonhosted.org/packages/6b/e2/5c98407215884c2570453a78bc0d6f0bbe619f06593847ccd6a2f1d3fe59/toptica_lasersdk-2.0.0-py3-none-any.whl";
|
||||
sha256 = "1k5d9ah8qzp75hh63nh9l5dk808v9ybpmzlhrdc3sxmas3ajv8s7";
|
||||
};
|
||||
propagatedBuildInputs = [ pkgs.python3Packages.pyserial ];
|
||||
};
|
||||
toptica-lasersdk-artiq = pkgs.python3Packages.buildPythonPackage rec {
|
||||
version = "2.0.0";
|
||||
name = "toptica-lasersdk-artiq-${version}";
|
||||
src = pkgs.fetchFromGitHub {
|
||||
owner = "quartiq";
|
||||
repo = "lasersdk-artiq";
|
||||
rev = "d38bb985e7ddffc9ac9d94fe136cac10947bfd72";
|
||||
sha256 = "03a09lc81l2l787yjm0xjpnjvs5x77ndmks3xxh25yyxdhsdf1fl";
|
||||
};
|
||||
postPatch = ''
|
||||
substituteInPlace lasersdk_artiq/aqctl_laser.py \
|
||||
--replace "toptica.lasersdk.async.client" \
|
||||
"toptica.lasersdk.asyncio.client"
|
||||
substituteInPlace lasersdk_artiq/test.py \
|
||||
--replace "toptica.lasersdk.async.client" \
|
||||
"toptica.lasersdk.asyncio.client"
|
||||
'';
|
||||
propagatedBuildInputs = [ toptica-lasersdk artiq ];
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue