Files
nixpkgs/pkgs/development/python-modules/numpy-stl/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

47 lines
904 B
Nix

{
lib,
buildPythonPackage,
cython,
fetchPypi,
numpy,
pytestCheckHook,
python-utils,
pythonOlder,
setuptools,
}:
buildPythonPackage rec {
pname = "numpy-stl";
version = "3.2.0";
pyproject = true;
disabled = pythonOlder "3.9";
src = fetchPypi {
pname = "numpy_stl";
inherit version;
hash = "sha256-WiDD95zdqgq8akuZ9Uhqzu1PiBUvKbGaV6zIROGD/U0=";
};
build-system = [ setuptools ];
nativeBuildInputs = [ cython ];
dependencies = [
numpy
python-utils
];
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "stl" ];
meta = {
description = "Library to make reading, writing and modifying both binary and ascii STL files easy";
homepage = "https://github.com/WoLpH/numpy-stl/";
changelog = "https://github.com/wolph/numpy-stl/releases/tag/v${version}";
license = lib.licenses.bsd3;
maintainers = [ ];
};
}