Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at gcc-offload 43 lines 936 B view raw
1{ 2 lib, 3 liblsl, 4 fetchFromGitHub, 5 buildPythonPackage, 6 setuptools, 7 wheel, 8}: 9 10buildPythonPackage rec { 11 pname = "pylsl"; 12 version = "1.16.2"; 13 pyproject = true; 14 15 src = fetchFromGitHub { 16 owner = "labstreaminglayer"; 17 repo = "pylsl"; 18 rev = "v${version}"; 19 hash = "sha256-rReoPirf1rdQppKEBfHMk3J2htdsnFfIdlNQIprOoUg="; 20 }; 21 22 postPatch = '' 23 substituteInPlace pylsl/pylsl.py \ 24 --replace "def find_liblsl_libraries(verbose=False):" "$(echo -e "def find_liblsl_libraries(verbose=False):\n yield '${liblsl}/lib/liblsl.so'")" 25 ''; 26 27 nativeBuildInputs = [ 28 setuptools 29 wheel 30 ]; 31 32 buildImputs = [ liblsl ]; 33 34 pythonImportsCheck = [ "pylsl" ]; 35 36 meta = with lib; { 37 description = "Python bindings (pylsl) for liblsl"; 38 homepage = "https://github.com/labstreaminglayer/pylsl"; 39 license = licenses.mit; 40 maintainers = with maintainers; [ abcsds ]; 41 mainProgram = "pylsl"; 42 }; 43}