Files
nixpkgs/pkgs/development/python-modules/isosurfaces/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

39 lines
1013 B
Nix

{
lib,
buildPythonPackage,
fetchPypi,
numpy,
}:
buildPythonPackage rec {
pname = "isosurfaces";
version = "0.1.2";
format = "setuptools";
src = fetchPypi {
inherit pname version;
hash = "sha256-+lHr6GTqk1WyaDDif91qQdWli0GfqNS0fjuLgHGNbiE=";
};
propagatedBuildInputs = [ numpy ];
# no tests defined upstream
doCheck = false;
pythonImportsCheck = [ "isosurfaces" ];
meta = {
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 = lib.licenses.mit;
maintainers = [ ];
};
}