2023-01-20 10:41:00 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
2023-02-16 17:41:37 +00:00
|
|
|
, fetchFromGitHub
|
2023-01-20 10:41:00 +00:00
|
|
|
, imageio
|
2023-05-24 13:37:59 +00:00
|
|
|
, matplotlib
|
2023-01-20 10:41:00 +00:00
|
|
|
, numpy
|
|
|
|
, pillow
|
|
|
|
, pooch
|
2023-10-09 19:29:22 +00:00
|
|
|
, pythonOlder
|
2023-01-20 10:41:00 +00:00
|
|
|
, scooby
|
|
|
|
, vtk
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pyvista";
|
2024-01-02 11:29:13 +00:00
|
|
|
version = "0.43.1";
|
2023-02-16 17:41:37 +00:00
|
|
|
format = "setuptools";
|
2023-01-20 10:41:00 +00:00
|
|
|
|
2023-10-09 19:29:22 +00:00
|
|
|
disabled = pythonOlder "3.8";
|
|
|
|
|
2023-02-16 17:41:37 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = pname;
|
|
|
|
repo = pname;
|
2023-10-09 19:29:22 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
2024-01-02 11:29:13 +00:00
|
|
|
hash = "sha256-H7WkRK9lP92L47nFNDT1WusWfU0bLgXBA+KQqTyedL4=";
|
2023-01-20 10:41:00 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
imageio
|
2023-05-24 13:37:59 +00:00
|
|
|
matplotlib
|
2023-01-20 10:41:00 +00:00
|
|
|
numpy
|
|
|
|
pillow
|
|
|
|
pooch
|
|
|
|
scooby
|
|
|
|
vtk
|
|
|
|
];
|
|
|
|
|
2023-02-16 17:41:37 +00:00
|
|
|
# Fatal Python error: Aborted
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"pyvista"
|
2023-01-20 10:41:00 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Easier Pythonic interface to VTK";
|
2023-10-09 19:29:22 +00:00
|
|
|
homepage = "https://pyvista.org";
|
|
|
|
changelog = "https://github.com/pyvista/pyvista/releases/tag/v${version}";
|
2023-01-20 10:41:00 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ wegank ];
|
|
|
|
};
|
|
|
|
}
|