2023-01-20 10:41:00 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, pythonOlder
|
|
|
|
|
|
|
|
# build
|
2023-11-16 04:20:00 +00:00
|
|
|
, meson
|
|
|
|
, meson-python
|
|
|
|
, ninja
|
2023-01-20 10:41:00 +00:00
|
|
|
, pybind11
|
|
|
|
|
|
|
|
# propagates
|
|
|
|
, numpy
|
|
|
|
|
|
|
|
# optionals
|
|
|
|
, bokeh
|
|
|
|
, chromedriver
|
|
|
|
, selenium
|
|
|
|
|
|
|
|
# tests
|
|
|
|
, matplotlib
|
|
|
|
, pillow
|
|
|
|
, pytestCheckHook
|
|
|
|
}:
|
|
|
|
|
2024-05-15 15:35:15 +00:00
|
|
|
let contourpy = buildPythonPackage rec {
|
2023-01-20 10:41:00 +00:00
|
|
|
pname = "contourpy";
|
2024-01-13 08:15:51 +00:00
|
|
|
version = "1.2.0";
|
2023-01-20 10:41:00 +00:00
|
|
|
format = "pyproject";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.8";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "contourpy";
|
|
|
|
repo = "contourpy";
|
|
|
|
rev = "refs/tags/v${version}";
|
2024-01-13 08:15:51 +00:00
|
|
|
hash = "sha256-5yZrIwwe9dL5vtdSJnOhY9X4BdK/cdEY4DkVVjCq1uw=";
|
2023-01-20 10:41:00 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
2023-11-16 04:20:00 +00:00
|
|
|
meson
|
|
|
|
meson-python
|
|
|
|
ninja
|
2023-01-20 10:41:00 +00:00
|
|
|
pybind11
|
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
numpy
|
|
|
|
];
|
|
|
|
|
|
|
|
passthru.optional-depdendencies = {
|
|
|
|
bokeh = [ bokeh chromedriver selenium ];
|
|
|
|
};
|
|
|
|
|
|
|
|
doCheck = false; # infinite recursion with matplotlib, tests in passthru
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2023-01-20 10:41:00 +00:00
|
|
|
matplotlib
|
|
|
|
pillow
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
|
|
|
passthru.tests = {
|
2024-05-15 15:35:15 +00:00
|
|
|
check = contourpy.overridePythonAttrs (_: { doCheck = true; });
|
2023-01-20 10:41:00 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"contourpy"
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
changelog = "https://github.com/contourpy/contourpy/releases/tag/v${version}";
|
|
|
|
description = "Python library for calculating contours in 2D quadrilateral grids";
|
|
|
|
homepage = "https://github.com/contourpy/contourpy";
|
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = with maintainers; [ ];
|
|
|
|
};
|
|
|
|
};
|
2024-05-15 15:35:15 +00:00
|
|
|
in contourpy
|