depot/third_party/nixpkgs/pkgs/development/python-modules/py-slvs/default.nix
Default email bcb2f287e1 Project import generated by Copybara.
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
2024-06-20 20:27:18 +05:30

50 lines
781 B
Nix

{
lib,
buildPythonPackage,
fetchPypi,
swig,
cmake,
ninja,
setuptools,
scikit-build,
}:
buildPythonPackage rec {
pname = "py-slvs";
version = "1.0.6";
src = fetchPypi {
pname = "py_slvs";
inherit version;
sha256 = "sha256-U6T/aXy0JTC1ptL5oBmch0ytSPmIkRA8XOi31NpArnI=";
};
pyproject = true;
nativeBuildInputs = [
swig
];
build-system = [
cmake
ninja
setuptools
scikit-build
];
dontUseCmakeConfigure = true;
pythonImportsCheck = [
"py_slvs"
];
meta = {
description = "Python binding of SOLVESPACE geometry constraint solver";
homepage = "https://github.com/realthunder/slvs_py";
license = lib.licenses.gpl3Only;
maintainers = with lib.maintainers; [
traverseda
];
};
}