-
-
Notifications
You must be signed in to change notification settings - Fork 14.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
python3.pkgs.oldest-supported-numpy: init at 2023.8.3 (#247073)
The main purpose of this package is to be used as a dependency in projects that depend upon it without having to patch their build dependency requirements.
- Loading branch information
Showing
2 changed files
with
42 additions
and
0 deletions.
There are no files selected for viewing
40 changes: 40 additions & 0 deletions
40
pkgs/development/python-modules/oldest-supported-numpy/default.nix
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
{ lib | ||
, buildPythonPackage | ||
, fetchPypi | ||
, numpy | ||
}: | ||
|
||
buildPythonPackage rec { | ||
pname = "oldest-supported-numpy"; | ||
version = "2023.8.3"; | ||
format = "setuptools"; | ||
|
||
src = fetchPypi { | ||
inherit pname version; | ||
hash = "sha256-yJp+wzsihagnI3crGPDBo+CqbVO4Xhxulj/o/NitxU0="; | ||
}; | ||
|
||
# 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>=' | ||
''; | ||
|
||
nativeBuildInputs = [ | ||
numpy | ||
]; | ||
|
||
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 ]; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters