mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-03-13 23:06:35 +01:00
There is no need to disable Python packages for Python versions that are
no longer in Nixpkgs.
This change was generated using the following script:
pattern='^\s*disabled\s*=\s*pythonOlder\s*"3\.\([0-9]\|10\)"\s*;\s*$'
for f in $(find -name '*.nix'); do
grep -q "$pattern" "$f" || continue
sed -i "/$pattern/d" "$f"
if [ $(grep -c pythonOlder "$f") == 1 ]; then
sed -i '/^\s*pythonOlder,\s*$/d' "$f"
fi
nixfmt "$f"
done
78 lines
1.5 KiB
Nix
78 lines
1.5 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
buildPythonPackage,
|
|
replaceVars,
|
|
fetchPypi,
|
|
cython,
|
|
fontconfig,
|
|
freetype-py,
|
|
hsluv,
|
|
kiwisolver,
|
|
libGL,
|
|
numpy,
|
|
oldest-supported-numpy,
|
|
packaging,
|
|
setuptools,
|
|
setuptools-scm,
|
|
wheel,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "vispy";
|
|
version = "0.16.1";
|
|
pyproject = true;
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-uTwyyF0IwGro9eMXf5z9bEleF0XyEgt3eDCt7l2cNkg=";
|
|
};
|
|
|
|
patches = lib.optionals (!stdenv.hostPlatform.isDarwin) [
|
|
(replaceVars ./library-paths.patch {
|
|
fontconfig = "${fontconfig.lib}/lib/libfontconfig${stdenv.hostPlatform.extensions.sharedLibrary}";
|
|
gl = "${libGL.out}/lib/libGL${stdenv.hostPlatform.extensions.sharedLibrary}";
|
|
})
|
|
];
|
|
|
|
nativeBuildInputs = [
|
|
cython
|
|
oldest-supported-numpy
|
|
setuptools
|
|
setuptools-scm
|
|
wheel
|
|
];
|
|
|
|
buildInputs = [ libGL ];
|
|
|
|
propagatedBuildInputs = [
|
|
freetype-py
|
|
hsluv
|
|
kiwisolver
|
|
numpy
|
|
packaging
|
|
];
|
|
|
|
doCheck = false; # otherwise runs OSX code on linux.
|
|
|
|
pythonImportsCheck = [
|
|
"vispy"
|
|
"vispy.color"
|
|
"vispy.geometry"
|
|
"vispy.gloo"
|
|
"vispy.glsl"
|
|
"vispy.io"
|
|
"vispy.plot"
|
|
"vispy.scene"
|
|
"vispy.util"
|
|
"vispy.visuals"
|
|
];
|
|
|
|
meta = {
|
|
description = "Interactive scientific visualization in Python";
|
|
homepage = "https://vispy.org/index.html";
|
|
changelog = "https://github.com/vispy/vispy/blob/v${version}/CHANGELOG.md";
|
|
license = lib.licenses.bsd3;
|
|
maintainers = with lib.maintainers; [ goertzenator ];
|
|
};
|
|
}
|