Files
2026-03-08 00:55:10 +01:00

56 lines
953 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
cmake,
scikit-build-core,
torch,
pytestCheckHook,
scipy,
}:
buildPythonPackage rec {
pname = "deepwave";
version = "0.0.26";
pyproject = true;
src = fetchFromGitHub {
owner = "ar4";
repo = "deepwave";
tag = "v${version}";
hash = "sha256-gjFbBn7fJiLZUm+97xf6xd7C+OkEoeFe3061tFkJhFk=";
};
# Return to project root to locate `pyproject.toml` for build
preBuild = ''
cd ..
'';
nativeBuildInputs = [
cmake
];
build-system = [
scikit-build-core
];
dependencies = [
torch
];
nativeCheckInputs = [
pytestCheckHook
scipy
];
pythonImportsCheck = [ "deepwave" ];
meta = {
description = "Wave propagation modules for PyTorch";
homepage = "https://github.com/ar4/deepwave";
license = lib.licenses.mit;
platforms = lib.intersectLists lib.platforms.x86_64 lib.platforms.linux;
maintainers = [ ];
};
}