Skip to content

Commit

Permalink
python3.pkgs.pylsl: init at 1.16.2
Browse files Browse the repository at this point in the history
  • Loading branch information
abcsds committed Oct 21, 2024
1 parent d8fc4b8 commit 2c75b65
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 0 deletions.
42 changes: 42 additions & 0 deletions pkgs/development/python-modules/pylsl/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
{
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 = ''
sed "s|def find_liblsl_libraries(verbose=False):|def find_liblsl_libraries(verbose=False):\n yield '${liblsl}/lib/liblsl.so'|g" -i pylsl/pylsl.py
'';

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; [ ];
mainProgram = "pylsl";
};
}
2 changes: 2 additions & 0 deletions pkgs/top-level/python-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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 { };
Expand Down

0 comments on commit 2c75b65

Please sign in to comment.