2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchPypi,
|
|
|
|
numpy,
|
2022-06-16 17:23:12 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "isosurfaces";
|
2024-04-21 15:54:59 +00:00
|
|
|
version = "0.1.2";
|
2024-01-02 11:29:13 +00:00
|
|
|
format = "setuptools";
|
2022-06-16 17:23:12 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2024-04-21 15:54:59 +00:00
|
|
|
sha256 = "sha256-+lHr6GTqk1WyaDDif91qQdWli0GfqNS0fjuLgHGNbiE=";
|
2022-06-16 17:23:12 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ numpy ];
|
|
|
|
|
|
|
|
# no tests defined upstream
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "isosurfaces" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://github.com/jared-hughes/isosurfaces";
|
|
|
|
description = "Construct isolines/isosurfaces of a 2D/3D scalar field defined by a function";
|
|
|
|
longDescription = ''
|
|
|
|
Construct isolines/isosurfaces of a 2D/3D scalar field defined by a
|
|
|
|
function, i.e. curves over which f(x,y)=0 or surfaces over which
|
|
|
|
f(x,y,z)=0. Most similar libraries use marching squares or similar over a
|
|
|
|
uniform grid, but this uses a quadtree to avoid wasting time sampling
|
|
|
|
many far from the implicit surface.
|
|
|
|
'';
|
|
|
|
license = licenses.mit;
|
2024-06-20 14:57:18 +00:00
|
|
|
maintainers = with maintainers; [ ];
|
2022-06-16 17:23:12 +00:00
|
|
|
};
|
|
|
|
}
|