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