about summary refs log tree commit diff
path: root/pkgs/development/python-modules/contourpy/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/development/python-modules/contourpy/default.nix')
-rw-r--r--pkgs/development/python-modules/contourpy/default.nix138
1 files changed, 72 insertions, 66 deletions
diff --git a/pkgs/development/python-modules/contourpy/default.nix b/pkgs/development/python-modules/contourpy/default.nix
index 5e12a4531b33..de2f96a8a93d 100644
--- a/pkgs/development/python-modules/contourpy/default.nix
+++ b/pkgs/development/python-modules/contourpy/default.nix
@@ -1,79 +1,85 @@
-{ lib
-, buildPythonPackage
-, fetchFromGitHub
-, pythonOlder
-
-# build
-, meson
-, meson-python
-, ninja
-, pybind11
-
-# propagates
-, numpy
-
-# optionals
-, bokeh
-, chromedriver
-, selenium
-
-# tests
-, matplotlib
-, pillow
-, pytestCheckHook
+{
+  lib,
+  buildPythonPackage,
+  fetchFromGitHub,
+  pythonOlder,
+
+  # build
+  meson,
+  meson-python,
+  ninja,
+  pybind11,
+
+  # propagates
+  numpy,
+
+  # optionals
+  bokeh,
+  chromedriver,
+  selenium,
+
+  # tests
+  matplotlib,
+  pillow,
+  pytestCheckHook,
 }:
 
-let countourpy = buildPythonPackage rec {
-  pname = "contourpy";
-  version = "1.2.0";
-  format = "pyproject";
+let
+  contourpy = buildPythonPackage rec {
+    pname = "contourpy";
+    version = "1.3.0";
+    format = "pyproject";
 
-  disabled = pythonOlder "3.8";
+    disabled = pythonOlder "3.8";
 
-  src = fetchFromGitHub {
-    owner = "contourpy";
-    repo = "contourpy";
-    rev = "refs/tags/v${version}";
-    hash = "sha256-5yZrIwwe9dL5vtdSJnOhY9X4BdK/cdEY4DkVVjCq1uw=";
-  };
+    src = fetchFromGitHub {
+      owner = "contourpy";
+      repo = "contourpy";
+      rev = "refs/tags/v${version}";
+      hash = "sha256-QvAIV2Y8H3oPZCF5yaqy2KWfs7aMyRX6aAU5t8E9Vpo=";
+    };
 
-  nativeBuildInputs = [
-    meson
-    meson-python
-    ninja
-    pybind11
-  ];
+    nativeBuildInputs = [
+      meson
+      ninja
+      pybind11
+    ];
 
-  propagatedBuildInputs = [
-    numpy
-  ];
+    build-system = [ meson-python ];
 
-  passthru.optional-depdendencies = {
-    bokeh = [ bokeh chromedriver selenium ];
-  };
+    dependencies = [ numpy ];
 
-  doCheck = false; # infinite recursion with matplotlib, tests in passthru
+    passthru.optional-depdendencies = {
+      bokeh = [
+        bokeh
+        chromedriver
+        selenium
+      ];
+    };
 
-  nativeCheckInputs = [
-    matplotlib
-    pillow
-    pytestCheckHook
-  ];
+    doCheck = false; # infinite recursion with matplotlib, tests in passthru
 
-  passthru.tests = {
-    check = countourpy.overridePythonAttrs (_: { doCheck = true; });
-  };
+    nativeCheckInputs = [
+      matplotlib
+      pillow
+      pytestCheckHook
+    ];
+
+    passthru.tests = {
+      check = contourpy.overridePythonAttrs (_: {
+        doCheck = true;
+      });
+    };
 
-  pythonImportsCheck = [
-    "contourpy"
-  ];
+    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; [ ];
+    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 = [ ];
+    };
   };
-};
-in countourpy
+in
+contourpy