python312Packages.py-slvs: init at 1.0.6

Forgot a typo

Apply suggestions from code review

Co-authored-by: Toma <62384384+TomaSajt@users.noreply.github.com>

Explicit imports

Process feedback from eclairevoyant
This commit is contained in:
Alex Davies
2024-06-04 16:56:18 -03:00
parent 93eb450b4c
commit c73d780958
2 changed files with 52 additions and 0 deletions

View File

@@ -0,0 +1,50 @@
{
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
];
};
}

View File

@@ -14076,6 +14076,8 @@ self: super: with self; {
slugid = callPackage ../development/python-modules/slugid { };
py-slvs = callPackage ../development/python-modules/py-slvs { };
sly = callPackage ../development/python-modules/sly { };
smart-meter-texas = callPackage ../development/python-modules/smart-meter-texas { };