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