lol

python3.pkgs.pysls: Fix build (#389972)

authored by

nicoo and committed by
GitHub
cfa9d2a0 59e342fb

+13 -4
+13 -4
pkgs/development/python-modules/pylsl/default.nix
··· 3 3 liblsl, 4 4 fetchFromGitHub, 5 5 buildPythonPackage, 6 + stdenv, 7 + numpy, 6 8 setuptools, 9 + setuptools-scm, 7 10 wheel, 8 11 }: 9 12 ··· 20 23 }; 21 24 22 25 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'")" 26 + substituteInPlace src/pylsl/lib/__init__.py \ 27 + --replace "def find_liblsl_libraries(verbose=False):" "$(echo -e "def find_liblsl_libraries(verbose=False):\n yield '${liblsl}/lib/liblsl.${ 28 + if stdenv.hostPlatform.isDarwin then "dylib" else "so" 29 + }'")" 25 30 ''; 26 31 27 - nativeBuildInputs = [ 32 + build-system = [ 28 33 setuptools 34 + setuptools-scm 29 35 wheel 30 36 ]; 31 37 32 - buildImputs = [ liblsl ]; 38 + dependencies = [ 39 + liblsl 40 + numpy 41 + ]; 33 42 34 43 pythonImportsCheck = [ "pylsl" ]; 35 44