mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-29 17:14:33 +00:00
47 lines
910 B
Nix
47 lines
910 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
cython,
|
|
fetchPypi,
|
|
numpy,
|
|
pytestCheckHook,
|
|
python-utils,
|
|
pythonOlder,
|
|
setuptools,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "numpy-stl";
|
|
version = "3.1.2";
|
|
pyproject = true;
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchPypi {
|
|
pname = "numpy_stl";
|
|
inherit version;
|
|
hash = "sha256-crRpUN+jZC3xx7hzz6eKVIUzckuQdHjFZ9tC/fV+49I=";
|
|
};
|
|
|
|
build-system = [ setuptools ];
|
|
|
|
nativeBuildInputs = [ cython ];
|
|
|
|
dependencies = [
|
|
numpy
|
|
python-utils
|
|
];
|
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
|
|
|
pythonImportsCheck = [ "stl" ];
|
|
|
|
meta = with lib; {
|
|
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 = licenses.bsd3;
|
|
maintainers = [ ];
|
|
};
|
|
}
|