nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 59 lines 1.1 kB view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchPypi, 5 fetchpatch, 6 swig, 7 cmake, 8 ninja, 9 setuptools, 10 scikit-build, 11}: 12 13buildPythonPackage rec { 14 pname = "py-slvs"; 15 version = "1.0.6"; 16 17 src = fetchPypi { 18 pname = "py_slvs"; 19 inherit version; 20 hash = "sha256-U6T/aXy0JTC1ptL5oBmch0ytSPmIkRA8XOi31NpArnI="; 21 }; 22 23 patches = [ 24 # https://github.com/realthunder/slvs_py/pull/11 25 (fetchpatch { 26 name = "cmake-4.patch"; 27 url = "https://github.com/realthunder/slvs_py/compare/ab95814...ad0e1f7.patch"; 28 hash = "sha256-LqDDx7uWq5VOkbE/aRu1JAau/DVfr40KK+L8PbBeGoU="; 29 }) 30 ]; 31 32 pyproject = true; 33 34 nativeBuildInputs = [ 35 swig 36 ]; 37 38 build-system = [ 39 cmake 40 ninja 41 setuptools 42 scikit-build 43 ]; 44 45 dontUseCmakeConfigure = true; 46 47 pythonImportsCheck = [ 48 "py_slvs" 49 ]; 50 51 meta = { 52 description = "Python binding of SOLVESPACE geometry constraint solver"; 53 homepage = "https://github.com/realthunder/slvs_py"; 54 license = lib.licenses.gpl3Only; 55 maintainers = with lib.maintainers; [ 56 traverseda 57 ]; 58 }; 59}