blob: 49f3fb90b29675c648f9964b4a8e97fa80bb53f3 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
{ lib
, buildPythonPackage
, fetchPypi
, numpy
}:
buildPythonPackage rec {
pname = "isosurfaces";
version = "0.1.0";
src = fetchPypi {
inherit pname version;
sha256 = "fa1b44e5e59d2f429add49289ab89e36f8dcda49b7badd99e0beea273be331f4";
};
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;
maintainers = with maintainers; [ friedelino ];
};
}
|