···11+{ lib
22+, buildPythonPackage
33+, fetchPypi
44+, numpy
55+}:
66+77+buildPythonPackage rec {
88+ pname = "isosurfaces";
99+ version = "0.1.0";
1010+1111+ src = fetchPypi {
1212+ inherit pname version;
1313+ sha256 = "fa1b44e5e59d2f429add49289ab89e36f8dcda49b7badd99e0beea273be331f4";
1414+ };
1515+1616+ propagatedBuildInputs = [ numpy ];
1717+1818+ # no tests defined upstream
1919+ doCheck = false;
2020+2121+ pythonImportsCheck = [ "isosurfaces" ];
2222+2323+ meta = with lib; {
2424+ homepage = "https://github.com/jared-hughes/isosurfaces";
2525+ description = "Construct isolines/isosurfaces of a 2D/3D scalar field defined by a function";
2626+ longDescription = ''
2727+ Construct isolines/isosurfaces of a 2D/3D scalar field defined by a
2828+ function, i.e. curves over which f(x,y)=0 or surfaces over which
2929+ f(x,y,z)=0. Most similar libraries use marching squares or similar over a
3030+ uniform grid, but this uses a quadtree to avoid wasting time sampling
3131+ many far from the implicit surface.
3232+ '';
3333+ license = licenses.mit;
3434+ maintainers = with maintainers; [ friedelino ];
3535+ };
3636+}