2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
|
|
|
pythonOlder,
|
2023-01-20 10:41:00 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
# build
|
|
|
|
meson,
|
|
|
|
meson-python,
|
|
|
|
ninja,
|
|
|
|
pybind11,
|
2023-01-20 10:41:00 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
# propagates
|
|
|
|
numpy,
|
2023-01-20 10:41:00 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
# optionals
|
|
|
|
bokeh,
|
|
|
|
chromedriver,
|
|
|
|
selenium,
|
2023-01-20 10:41:00 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
# tests
|
|
|
|
matplotlib,
|
|
|
|
pillow,
|
|
|
|
pytestCheckHook,
|
2023-01-20 10:41:00 +00:00
|
|
|
}:
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
let
|
|
|
|
contourpy = buildPythonPackage rec {
|
|
|
|
pname = "contourpy";
|
2024-07-27 06:49:29 +00:00
|
|
|
version = "1.2.1";
|
2024-06-05 15:53:02 +00:00
|
|
|
format = "pyproject";
|
2023-01-20 10:41:00 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
disabled = pythonOlder "3.8";
|
2023-01-20 10:41:00 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "contourpy";
|
|
|
|
repo = "contourpy";
|
|
|
|
rev = "refs/tags/v${version}";
|
2024-07-27 06:49:29 +00:00
|
|
|
hash = "sha256-Qd6FC7SgFyC/BvOPWVkr2ZfKVMVAknLlidNRq3zcWU0=";
|
2024-06-05 15:53:02 +00:00
|
|
|
};
|
2023-01-20 10:41:00 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
meson
|
|
|
|
meson-python
|
|
|
|
ninja
|
|
|
|
pybind11
|
|
|
|
];
|
2023-01-20 10:41:00 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
propagatedBuildInputs = [ numpy ];
|
2023-01-20 10:41:00 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
passthru.optional-depdendencies = {
|
|
|
|
bokeh = [
|
|
|
|
bokeh
|
|
|
|
chromedriver
|
|
|
|
selenium
|
|
|
|
];
|
|
|
|
};
|
2023-01-20 10:41:00 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
doCheck = false; # infinite recursion with matplotlib, tests in passthru
|
2023-01-20 10:41:00 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
nativeCheckInputs = [
|
|
|
|
matplotlib
|
|
|
|
pillow
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
2023-01-20 10:41:00 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
passthru.tests = {
|
|
|
|
check = contourpy.overridePythonAttrs (_: {
|
|
|
|
doCheck = true;
|
|
|
|
});
|
|
|
|
};
|
2023-01-20 10:41:00 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonImportsCheck = [ "contourpy" ];
|
2023-01-20 10:41:00 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
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; [ ];
|
|
|
|
};
|
2023-01-20 10:41:00 +00:00
|
|
|
};
|
2024-06-05 15:53:02 +00:00
|
|
|
in
|
|
|
|
contourpy
|