···11+{ lib
22+, buildPythonPackage
33+, fetchPypi
44+, numpy
55+}:
66+77+buildPythonPackage rec {
88+ pname = "oldest-supported-numpy";
99+ version = "2023.8.3";
1010+ format = "setuptools";
1111+1212+ src = fetchPypi {
1313+ inherit pname version;
1414+ hash = "sha256-yJp+wzsihagnI3crGPDBo+CqbVO4Xhxulj/o/NitxU0=";
1515+ };
1616+1717+ # The purpose of oldest-supported-numpy is to build a project against the
1818+ # oldest version of numpy for a given Python distribution in order to build
1919+ # a binary that is compatible with the largest possible versons of numpy.
2020+ # We only build against one version of numpy in nixpkgs, so instead we only
2121+ # want to make sure that we have a version above the minimum.
2222+ #
2323+ postPatch = ''
2424+ substituteInPlace setup.cfg \
2525+ --replace 'numpy==' 'numpy>='
2626+ '';
2727+2828+ nativeBuildInputs = [
2929+ numpy
3030+ ];
3131+3232+ doCheck = false;
3333+3434+ meta = with lib; {
3535+ description = "Meta-package providing the oldest supported Numpy for a given Python version and platform";
3636+ homepage = "https://github.com/scipy/oldest-supported-numpy";
3737+ license = licenses.bsd2;
3838+ maintainers = with maintainers; [ tjni ];
3939+ };
4040+}
···7777 coronavirus = throw "coronavirus was removed, because the source is not providing the data anymore."; # added 2023-05-04
7878 cozy = throw "cozy was removed because it was not actually https://pypi.org/project/Cozy/."; # added 2022-01-14
7979 cryptography_vectors = "cryptography_vectors is no longer exposed in python*Packages because it is used for testing cryptography only."; # Added 2022-03-23
8080+ cx_Freeze = cx-freeze; # added 2023-08-02
8081 dask-xgboost = throw "dask-xgboost was removed because its features are available in xgboost"; # added 2022-05-24
8182 dateutil = python-dateutil; # added 2021-07-03
8283 demjson = throw "demjson has been removed, it was using setuptools 2to3 translation feature, which has been removed in setuptools 58"; # added 2022-01-18