Merge pull request #268317 from NickCao/blis

python311Packages.blis: 0.7.9 -> 0.7.11

authored by

Nick Cao and committed by
GitHub
544f7c00 ceb63f7c

+20 -10
+20 -10
pkgs/development/python-modules/blis/default.nix
··· 1 { lib 2 , buildPythonPackage 3 - , fetchPypi 4 , cython 5 , hypothesis 6 , numpy 7 - , pytest 8 , pythonOlder 9 }: 10 11 buildPythonPackage rec { 12 pname = "blis"; 13 - version = "0.7.9"; 14 - format = "setuptools"; 15 16 disabled = pythonOlder "3.7"; 17 18 - src = fetchPypi { 19 - inherit pname version; 20 - hash = "sha256-Ke9MJQB3hakP/C8Ks9O9O3XNLXhWqaSCt9DayNURoJ0="; 21 }; 22 23 postPatch = '' 24 # See https://github.com/numpy/numpy/issues/21079 25 substituteInPlace blis/benchmark.py \ 26 - --replace "numpy.__config__.blas_ilp64_opt_info" "numpy.__config__.blas_opt_info" 27 ''; 28 29 nativeBuildInputs = [ 30 cython 31 ]; 32 ··· 36 37 nativeCheckInputs = [ 38 hypothesis 39 - pytest 40 ]; 41 42 pythonImportsCheck = [ ··· 53 description = "BLAS-like linear algebra library"; 54 homepage = "https://github.com/explosion/cython-blis"; 55 license = licenses.bsd3; 56 - maintainers = with maintainers; [ ]; 57 }; 58 }
··· 1 { lib 2 , buildPythonPackage 3 + , fetchFromGitHub 4 + , setuptools 5 , cython 6 , hypothesis 7 , numpy 8 + , pytestCheckHook 9 , pythonOlder 10 }: 11 12 buildPythonPackage rec { 13 pname = "blis"; 14 + version = "0.7.11"; 15 + pyproject = true; 16 17 disabled = pythonOlder "3.7"; 18 19 + src = fetchFromGitHub { 20 + owner = "explosion"; 21 + repo = "cython-blis"; 22 + rev = "refs/tags/v${version}"; 23 + hash = "sha256-p8pzGZc5OiiGTvXULDgzsBC3jIhovTKUq3RtPnQ/+to="; 24 }; 25 26 postPatch = '' 27 # See https://github.com/numpy/numpy/issues/21079 28 + # has no functional difference as the name is only used in log output 29 substituteInPlace blis/benchmark.py \ 30 + --replace 'numpy.__config__.blas_ilp64_opt_info["libraries"]' '["dummy"]' 31 + ''; 32 + 33 + preCheck = '' 34 + # remove src module, so tests use the installed module instead 35 + rm -rf ./blis 36 ''; 37 38 nativeBuildInputs = [ 39 + setuptools 40 cython 41 ]; 42 ··· 46 47 nativeCheckInputs = [ 48 hypothesis 49 + pytestCheckHook 50 ]; 51 52 pythonImportsCheck = [ ··· 63 description = "BLAS-like linear algebra library"; 64 homepage = "https://github.com/explosion/cython-blis"; 65 license = licenses.bsd3; 66 + maintainers = with maintainers; [ nickcao ]; 67 }; 68 }