1{ 2 lib, 3 buildPythonPackage, 4 cython, 5 fetchPypi, 6 numpy, 7 pytestCheckHook, 8 python-utils, 9 pythonOlder, 10 setuptools, 11}: 12 13buildPythonPackage rec { 14 pname = "numpy-stl"; 15 version = "3.2.0"; 16 pyproject = true; 17 18 disabled = pythonOlder "3.9"; 19 20 src = fetchPypi { 21 pname = "numpy_stl"; 22 inherit version; 23 hash = "sha256-WiDD95zdqgq8akuZ9Uhqzu1PiBUvKbGaV6zIROGD/U0="; 24 }; 25 26 build-system = [ setuptools ]; 27 28 nativeBuildInputs = [ cython ]; 29 30 dependencies = [ 31 numpy 32 python-utils 33 ]; 34 35 nativeCheckInputs = [ pytestCheckHook ]; 36 37 pythonImportsCheck = [ "stl" ]; 38 39 meta = with lib; { 40 description = "Library to make reading, writing and modifying both binary and ascii STL files easy"; 41 homepage = "https://github.com/WoLpH/numpy-stl/"; 42 changelog = "https://github.com/wolph/numpy-stl/releases/tag/v${version}"; 43 license = licenses.bsd3; 44 maintainers = [ ]; 45 }; 46}