python3.pkgs.pylsl: init at 1.16.2

Update pkgs/development/python-modules/pylsl/default.nix

Co-authored-by: Maciej Krüger <mkg20001@gmail.com>
This commit is contained in:
Alberto Barradas 2024-10-21 18:53:12 +02:00
parent 4832a5aee2
commit cc61a44bf9
2 changed files with 45 additions and 0 deletions

View File

@ -0,0 +1,43 @@
{
lib,
liblsl,
fetchFromGitHub,
buildPythonPackage,
setuptools,
wheel,
}:
buildPythonPackage rec {
pname = "pylsl";
version = "1.16.2";
pyproject = true;
src = fetchFromGitHub {
owner = "labstreaminglayer";
repo = "pylsl";
rev = "v${version}";
hash = "sha256-rReoPirf1rdQppKEBfHMk3J2htdsnFfIdlNQIprOoUg=";
};
postPatch = ''
substituteInPlace pylsl/pylsl.py \
--replace "def find_liblsl_libraries(verbose=False):" "$(echo -e "def find_liblsl_libraries(verbose=False):\n yield '${liblsl}/lib/liblsl.so'")"
'';
nativeBuildInputs = [
setuptools
wheel
];
buildImputs = [ liblsl ];
pythonImportsCheck = [ "pylsl" ];
meta = with lib; {
description = "Python bindings (pylsl) for liblsl";
homepage = "https://github.com/labstreaminglayer/pylsl";
license = licenses.mit;
maintainers = with maintainers; [ abcsds ];
mainProgram = "pylsl";
};
}

View File

@ -10264,6 +10264,8 @@ self: super: with self; {
pyloadapi = callPackage ../development/python-modules/pyloadapi { };
pylsl = callPackage ../development/python-modules/pylsl { };
pyngo = callPackage ../development/python-modules/pyngo { };
pyngrok = callPackage ../development/python-modules/pyngrok { };