f34ce41345
GitOrigin-RevId: b73c2221a46c13557b1b3be9c2070cc42cf01eb3
39 lines
568 B
Nix
39 lines
568 B
Nix
{
|
|
buildPythonPackage,
|
|
brainflow,
|
|
nptyping,
|
|
numpy,
|
|
python,
|
|
setuptools,
|
|
}:
|
|
|
|
buildPythonPackage {
|
|
inherit (brainflow)
|
|
pname
|
|
version
|
|
src
|
|
patches
|
|
meta
|
|
;
|
|
|
|
pyproject = true;
|
|
build-system = [ setuptools ];
|
|
|
|
dependencies = [
|
|
numpy
|
|
nptyping
|
|
];
|
|
|
|
buildInputs = [ brainflow ];
|
|
|
|
postPatch = ''
|
|
cd python_package
|
|
'';
|
|
|
|
postInstall = ''
|
|
mkdir -p "$out/${python.sitePackages}/brainflow/lib/"
|
|
cp -Tr "${brainflow}/lib" "$out/${python.sitePackages}/brainflow/lib/"
|
|
'';
|
|
|
|
pythonImportsCheck = [ "brainflow" ];
|
|
}
|