1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5 numpy,
6}:
7
8buildPythonPackage rec {
9 pname = "isosurfaces";
10 version = "0.1.2";
11 format = "setuptools";
12
13 src = fetchPypi {
14 inherit pname version;
15 hash = "sha256-+lHr6GTqk1WyaDDif91qQdWli0GfqNS0fjuLgHGNbiE=";
16 };
17
18 propagatedBuildInputs = [ numpy ];
19
20 # no tests defined upstream
21 doCheck = false;
22
23 pythonImportsCheck = [ "isosurfaces" ];
24
25 meta = with lib; {
26 homepage = "https://github.com/jared-hughes/isosurfaces";
27 description = "Construct isolines/isosurfaces of a 2D/3D scalar field defined by a function";
28 longDescription = ''
29 Construct isolines/isosurfaces of a 2D/3D scalar field defined by a
30 function, i.e. curves over which f(x,y)=0 or surfaces over which
31 f(x,y,z)=0. Most similar libraries use marching squares or similar over a
32 uniform grid, but this uses a quadtree to avoid wasting time sampling
33 many far from the implicit surface.
34 '';
35 license = licenses.mit;
36 maintainers = [ ];
37 };
38}