Something went wrong. Try again.
Nix Packages collection & NixOS github.com/NixOS/nixpkgs
Something went wrong. Try again.
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465{ lib, buildPythonPackage, fetchFromGitHub,
# build-system ninja, scikit-build-core,
# nativeBuildInputs cmake, pyprojectVersionPatchHook,
# dependencies torch,
# tests pytestCheckHook, scipy,}:
buildPythonPackage (finalAttrs: { pname = "deepwave"; version = "0.0.27"; pyproject = true; __structuredAttrs = true;
src = fetchFromGitHub { owner = "ar4"; repo = "deepwave"; tag = "v${finalAttrs.version}"; hash = "sha256-zOyoycCJjx4HJEnkAD5r7d+qxO5A+d0dCgx2oRjxPuU="; };
build-system = [ ninja scikit-build-core ];
nativeBuildInputs = [ cmake pyprojectVersionPatchHook ]; dontUseCmakeConfigure = true;
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 = [ ]; };})