nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix

python3Packages.symengine: cleanup

qbisi 1d4e4b48 56c70eb5

+15 -10
+15 -10
pkgs/development/python-modules/symengine/default.nix
··· 3 3 buildPythonPackage, 4 4 fetchFromGitHub, 5 5 cython, 6 + setuptools, 6 7 cmake, 7 8 symengine, 8 9 pytest, 9 10 sympy, 10 11 python, 11 - setuptools, 12 12 }: 13 13 14 14 buildPythonPackage rec { 15 15 pname = "symengine"; 16 16 version = "0.14.1"; 17 - 18 - build-system = [ setuptools ]; 19 17 pyproject = true; 20 18 21 19 src = fetchFromGitHub { ··· 23 25 hash = "sha256-adzODm7gAqwAf7qzfRQ1AG8mC3auiXM4OsV/0h+ZmUg="; 24 26 }; 25 27 26 - env = { 27 - SymEngine_DIR = "${symengine}"; 28 - }; 29 - 30 28 postPatch = '' 31 29 substituteInPlace setup.py \ 32 30 --replace-fail "'cython>=0.29.24'" "'cython'" 33 31 ''; 34 32 33 + build-system = [ 34 + cython 35 + setuptools 36 + ]; 37 + 35 38 dontUseCmakeConfigure = true; 39 + 36 40 nativeBuildInputs = [ 37 41 cmake 38 - cython 42 + ]; 43 + 44 + buildInputs = [ 45 + symengine 39 46 ]; 40 47 41 48 nativeCheckInputs = [ ··· 50 47 51 48 checkPhase = '' 52 49 runHook preCheck 50 + 53 51 mkdir empty && cd empty 54 52 ${python.interpreter} ../bin/test_python.py 53 + 55 54 runHook postCheck 56 55 ''; 57 56 58 - meta = with lib; { 57 + meta = { 59 58 description = "Python library providing wrappers to SymEngine"; 60 59 homepage = "https://github.com/symengine/symengine.py"; 61 - license = licenses.mit; 60 + license = lib.licenses.mit; 62 61 maintainers = [ ]; 63 62 }; 64 63 }