summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules
diff options
context:
space:
mode:
authorgithub-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>2023-08-12 06:01:19 +0000
committerGitHub <noreply@github.com>2023-08-12 06:01:19 +0000
commitbb4eee2f74a61ba5ab7561994e21df590f24fe0a (patch)
treee5f168963b40604aa892a7c98a07b6a6b0fca699 /pkgs/development/python-modules
parent7377e5c21eda383e4b48e25a7c8f466f28cca100 (diff)
parente092a2a48d1b0db3b689b61997703f0a7ac3233a (diff)
Merge staging-next into staging
Diffstat (limited to 'pkgs/development/python-modules')
-rw-r--r--pkgs/development/python-modules/astropy-extension-helpers/default.nix4
-rw-r--r--pkgs/development/python-modules/dataclass-wizard/default.nix65
-rw-r--r--pkgs/development/python-modules/grpcio-status/default.nix4
-rw-r--r--pkgs/development/python-modules/grpcio-tools/default.nix4
-rw-r--r--pkgs/development/python-modules/seaborn/default.nix29
-rw-r--r--pkgs/development/python-modules/single-version/0001-set-poetry-core.patch21
-rw-r--r--pkgs/development/python-modules/single-version/default.nix15
7 files changed, 110 insertions, 32 deletions
diff --git a/pkgs/development/python-modules/astropy-extension-helpers/default.nix b/pkgs/development/python-modules/astropy-extension-helpers/default.nix
index 08a5139e5979..0077cfdde150 100644
--- a/pkgs/development/python-modules/astropy-extension-helpers/default.nix
+++ b/pkgs/development/python-modules/astropy-extension-helpers/default.nix
@@ -4,7 +4,9 @@
, findutils
, pytestCheckHook
, pythonOlder
+, pip
, setuptools-scm
+, wheel
}:
buildPythonPackage rec {
@@ -21,12 +23,14 @@ buildPythonPackage rec {
nativeBuildInputs = [
setuptools-scm
+ wheel
];
patches = [ ./permissions.patch ];
nativeCheckInputs = [
findutils
+ pip
pytestCheckHook
];
diff --git a/pkgs/development/python-modules/dataclass-wizard/default.nix b/pkgs/development/python-modules/dataclass-wizard/default.nix
new file mode 100644
index 000000000000..603fd25e9b2a
--- /dev/null
+++ b/pkgs/development/python-modules/dataclass-wizard/default.nix
@@ -0,0 +1,65 @@
+{ lib
+, fetchFromGitHub
+, buildPythonPackage
+, pythonOlder
+, pythonAtLeast
+, pytimeparse
+, pyyaml
+, pytestCheckHook
+, pytest-mock
+, typing-extensions
+}:
+
+buildPythonPackage rec {
+ pname = "dataclass-wizard";
+ version = "0.22.2";
+ format = "setuptools";
+
+ src = fetchFromGitHub {
+ owner = "rnag";
+ repo = "dataclass-wizard";
+ rev = "v${version}";
+ hash = "sha256-Ufi4lZc+UkM6NZr4bS2OibpOmMjyiBEoVKxmrqauW50=";
+ };
+
+ propagatedBuildInputs = [
+ ] ++ lib.optionals (pythonOlder "3.9") [
+ typing-extensions
+ ];
+
+ passthru.optional-dependencies = {
+ timedelta = [
+ pytimeparse
+ ];
+ yaml = [
+ pyyaml
+ ];
+ };
+
+ nativeCheckInputs = [
+ pytestCheckHook
+ pytest-mock
+ ] ++ passthru.optional-dependencies.timedelta
+ ++ passthru.optional-dependencies.yaml;
+
+ disabledTests = [
+ ] ++ lib.optionals (pythonAtLeast "3.11") [
+ # Any/None internal changes, tests need adjusting upstream
+ "without_type_hinting"
+ "default_dict"
+ "test_frozenset"
+ "test_set"
+ "date_times_with_custom_pattern"
+ "from_dict_handles_identical_cased_json_keys"
+ ];
+
+ pythonImportsCheck = [ "dataclass_wizard" ];
+
+ meta = with lib; {
+ description = "A set of simple, yet elegant wizarding tools for interacting with the Python dataclasses module";
+ homepage = "https://github.com/rnag/dataclass-wizard";
+ changelog = "https://github.com/rnag/dataclass-wizard/releases/tag/v${version}";
+ license = licenses.asl20;
+ maintainers = with maintainers; [ codifryed ];
+ };
+}
diff --git a/pkgs/development/python-modules/grpcio-status/default.nix b/pkgs/development/python-modules/grpcio-status/default.nix
index 27a2fb54da8d..991549ea9ed9 100644
--- a/pkgs/development/python-modules/grpcio-status/default.nix
+++ b/pkgs/development/python-modules/grpcio-status/default.nix
@@ -9,14 +9,14 @@
buildPythonPackage rec {
pname = "grpcio-status";
- version = "1.54.2";
+ version = "1.57.0";
format = "setuptools";
disabled = pythonOlder "3.6";
src = fetchPypi {
inherit pname version;
- hash = "sha256-MlXL7Ft8cGyqPU3VhGBsCA5kFeFWMbsvYhXitwBVg20=";
+ hash = "sha256-sJjamd8e6+WDN/j3jlDfmQJzzKzBIm/d60fFkOPfngI=";
};
postPatch = ''
diff --git a/pkgs/development/python-modules/grpcio-tools/default.nix b/pkgs/development/python-modules/grpcio-tools/default.nix
index 6012a9eb135c..78e3cdaae7f1 100644
--- a/pkgs/development/python-modules/grpcio-tools/default.nix
+++ b/pkgs/development/python-modules/grpcio-tools/default.nix
@@ -2,12 +2,12 @@
buildPythonPackage rec {
pname = "grpcio-tools";
- version = "1.54.2";
+ version = "1.57.0";
format = "setuptools";
src = fetchPypi {
inherit pname version;
- hash = "sha256-4RwsKu5T80CZLo5NalkXLLu9AZPxNR3pjE+BClBB1co=";
+ hash = "sha256-LxYTDYac4n7NYjGUVHtkndZXMz7H6GRMxXHGRXgam4U=";
};
postPatch = ''
diff --git a/pkgs/development/python-modules/seaborn/default.nix b/pkgs/development/python-modules/seaborn/default.nix
index 7b40b674b4cb..267b6065ed73 100644
--- a/pkgs/development/python-modules/seaborn/default.nix
+++ b/pkgs/development/python-modules/seaborn/default.nix
@@ -1,6 +1,7 @@
{ lib
, stdenv
, buildPythonPackage
+, fetchpatch
, fetchPypi
, flit-core
, matplotlib
@@ -24,6 +25,24 @@ buildPythonPackage rec {
hash = "sha256-N0ZF82UJ0NyriVy6W0fa8Fhvd7/js2yXxgfbfaW+ATk=";
};
+ patches = [
+ (fetchpatch {
+ name = "fix-test-using-matplotlib-3.7.patch";
+ url = "https://github.com/mwaskom/seaborn/commit/db7ae11750fc2dfb695457239708448d54e9b8cd.patch";
+ hash = "sha256-LbieI0GeC/0NpFVxV/NRQweFjP/lj/TR2D/SLMPYqJg=";
+ })
+ (fetchpatch {
+ name = "fix-pandas-deprecation.patch";
+ url = "https://github.com/mwaskom/seaborn/commit/a48601d6bbf8381f9435be48624f1a77d6fbfced.patch";
+ hash = "sha256-LuN8jn6Jo9Fvdl5iGZ2LgINYujSDvvs+hSclnadV1F4=";
+ })
+ (fetchpatch {
+ name = "fix-tests-using-numpy-1.25.patch";
+ url = "https://github.com/mwaskom/seaborn/commit/b6737d5aec9a91bb8840cdda896a7970e1830d56.patch";
+ hash = "sha256-Xj82yyB5Vy2xKRl0ideDmJ5Zr4Xc+8cEHU/liVwMSvE=";
+ })
+ ];
+
nativeBuildInputs = [
flit-core
];
@@ -41,12 +60,12 @@ buildPythonPackage rec {
];
disabledTests = [
- # incompatible with matplotlib 3.7
- # https://github.com/mwaskom/seaborn/issues/3288
- "test_subplot_kws"
-
# requires internet connection
"test_load_dataset_string_error"
+
+ # per https://github.com/mwaskom/seaborn/issues/3431, we can enable this
+ # once matplotlib releases version > 3.7.2
+ "test_share_xy"
] ++ lib.optionals (!stdenv.hostPlatform.isx86) [
# overly strict float tolerances
"TestDendrogram"
@@ -54,7 +73,7 @@ buildPythonPackage rec {
# All platforms should use Agg. Let's set it explicitly to avoid probing GUI
# backends (leads to crashes on macOS).
- MPLBACKEND="Agg";
+ env.MPLBACKEND="Agg";
pythonImportsCheck = [
"seaborn"
diff --git a/pkgs/development/python-modules/single-version/0001-set-poetry-core.patch b/pkgs/development/python-modules/single-version/0001-set-poetry-core.patch
deleted file mode 100644
index 4c6f869c0c27..000000000000
--- a/pkgs/development/python-modules/single-version/0001-set-poetry-core.patch
+++ /dev/null
@@ -1,21 +0,0 @@
-From d949b37151cd538d4c6a15e1ba6c1343f8bff76d Mon Sep 17 00:00:00 2001
-From: "P. R. d. O" <d.ol.rod@protonmail.com>
-Date: Mon, 6 Dec 2021 15:26:19 -0600
-Subject: [PATCH] set poetry-core
-
----
- pyproject.toml | 2 +-
- 1 file changed, 1 insertion(+), 1 deletion(-)
-
-diff --git a/pyproject.toml b/pyproject.toml
-index d3fdc52..bd7ddc2 100644
---- a/pyproject.toml
-+++ b/pyproject.toml
-@@ -27,4 +27,4 @@ black = "^19.10b0"
-
- [build-system]
- requires = ["poetry>=0.12"]
--build-backend = "poetry.masonry.api"
-+build-backend = "poetry.core.masonry.api"
---
-2.33.1
diff --git a/pkgs/development/python-modules/single-version/default.nix b/pkgs/development/python-modules/single-version/default.nix
index b1ba4adfa120..53989afe94f8 100644
--- a/pkgs/development/python-modules/single-version/default.nix
+++ b/pkgs/development/python-modules/single-version/default.nix
@@ -1,4 +1,10 @@
-{ lib, buildPythonPackage, fetchFromGitHub, poetry-core, pytestCheckHook }:
+{ lib
+, buildPythonPackage
+, fetchFromGitHub
+, fetchpatch
+, poetry-core
+, pytestCheckHook
+}:
buildPythonPackage rec {
pname = "single-version";
@@ -13,7 +19,12 @@ buildPythonPackage rec {
};
patches = [
- ./0001-set-poetry-core.patch
+ # https://github.com/hongquan/single-version/pull/4
+ (fetchpatch {
+ name = "use-poetry-core.patch";
+ url = "https://github.com/hongquan/single-version/commit/0cdf9795cb0522e90a8dc00306f1ff7bb85621ad.patch";
+ hash = "sha256-eT9G1XvkNF0+NKgx+yN7ei53xIEMvnc7V/KtPLqlWik=";
+ })
];
nativeBuildInputs = [ poetry-core ];