at 23.05-pre 1.6 kB view raw
1{ lib 2, buildPythonPackage 3, fetchPypi 4, zeroconf 5, requests 6, setuptools 7}: 8 9buildPythonPackage rec { 10 pname = "moku"; 11 version = "2.5.1"; 12 13 /* 14 15 Pypi's webpage <https://pypi.org/project/moku/> lists 16 https://github.com/liquidinstruments/moku/archive/${version}.tar.gz as the 17 download link, but that repository doesn't exist from some reason :/. When 18 packaging this, I didn't find any mention of a git repo of the sources. Note 19 that the pymoku <https://github.com/liquidinstruments/pymoku> repo holds the 20 sources of the legacy API package. 21 22 */ 23 src = fetchPypi { 24 inherit pname version; 25 hash = "sha256-oFRwJ6i4wfjA3E2QMqE4ybutT7OZiFZ3LYXoplY3D/I="; 26 }; 27 /* 28 29 Note: If you run `moku download` and encounter the error: 30 31 [Errno 13] Permission denied: '/nix/store/.../lib/python 3.9/site-packages/moku/data' 32 33 Then use the $MOKU_DATA_PATH environment variable to control where the 34 downloaded files will go to. It is undocumented upstream and there's no 35 repository to contribute such documentation unfortunately. Also there is no 36 suitable default value for this on Nix systems, so there's no patch we can 37 apply locally to make the situation better. 38 39 */ 40 41 propagatedBuildInputs = [ 42 zeroconf 43 requests 44 setuptools 45 ]; 46 47 pythonImportsCheck = [ 48 "moku" 49 ]; 50 51 meta = with lib; { 52 description = "Python scripting interface to the Liquid Instruments Moku"; 53 homepage = "https://apis.liquidinstruments.com/starting-python.html"; 54 license = licenses.mit; 55 maintainers = with maintainers; [ doronbehar ]; 56 }; 57}