1{ 2 lib, 3 buildPythonPackage, 4 fetchPypi, 5 numpy, 6}: 7 8buildPythonPackage rec { 9 pname = "oldest-supported-numpy"; 10 version = "2023.12.21"; 11 format = "setuptools"; 12 13 src = fetchPypi { 14 inherit pname version; 15 hash = "sha256-cdicMbtWeBTkfi4mjrLpK2+Z9c529MPbMIM2JOnvKeA="; 16 }; 17 18 # The purpose of oldest-supported-numpy is to build a project against the 19 # oldest version of numpy for a given Python distribution in order to build 20 # a binary that is compatible with the largest possible versions of numpy. 21 # We only build against one version of numpy in nixpkgs, so instead we only 22 # want to make sure that we have a version above the minimum. 23 # 24 postPatch = '' 25 substituteInPlace setup.cfg \ 26 --replace 'numpy==' 'numpy>=' 27 ''; 28 29 propagatedBuildInputs = [ numpy ]; 30 31 # package has no tests 32 doCheck = false; 33 34 meta = with lib; { 35 description = "Meta-package providing the oldest supported Numpy for a given Python version and platform"; 36 homepage = "https://github.com/scipy/oldest-supported-numpy"; 37 license = licenses.bsd2; 38 maintainers = with maintainers; [ tjni ]; 39 }; 40}