summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/development/python-modules')
-rw-r--r--pkgs/development/python-modules/fs/default.nix29
-rw-r--r--pkgs/development/python-modules/grpcio-channelz/default.nix4
-rw-r--r--pkgs/development/python-modules/grpcio-health-checking/default.nix4
-rw-r--r--pkgs/development/python-modules/grpcio-reflection/default.nix4
-rw-r--r--pkgs/development/python-modules/grpcio-status/default.nix4
-rw-r--r--pkgs/development/python-modules/grpcio-testing/default.nix4
-rw-r--r--pkgs/development/python-modules/grpcio-tools/default.nix4
-rw-r--r--pkgs/development/python-modules/grpcio/default.nix4
-rw-r--r--pkgs/development/python-modules/numpy/2.nix4
-rw-r--r--pkgs/development/python-modules/openstackdocstheme/default.nix3
-rw-r--r--pkgs/development/python-modules/pbr/default.nix2
-rw-r--r--pkgs/development/python-modules/reno/default.nix90
-rw-r--r--pkgs/development/python-modules/six/default.nix18
-rw-r--r--pkgs/development/python-modules/waitress/default.nix25
-rw-r--r--pkgs/development/python-modules/wheel/default.nix6
15 files changed, 158 insertions, 47 deletions
diff --git a/pkgs/development/python-modules/fs/default.nix b/pkgs/development/python-modules/fs/default.nix
index 9d1fded19c1b..e36d8412ee20 100644
--- a/pkgs/development/python-modules/fs/default.nix
+++ b/pkgs/development/python-modules/fs/default.nix
@@ -4,7 +4,6 @@
appdirs,
buildPythonPackage,
fetchPypi,
- glibcLocales,
mock,
psutil,
pyftpdlib,
@@ -30,13 +29,10 @@ buildPythonPackage rec {
build-system = [ setuptools ];
- buildInputs = [ glibcLocales ];
-
dependencies = [
six
appdirs
pytz
- setuptools
];
nativeCheckInputs = [
@@ -52,23 +48,28 @@ buildPythonPackage rec {
HOME=$(mktemp -d)
'';
- # strong cycle with parameterized
- doCheck = false;
-
- pytestFlagsArray = [ "--ignore=tests/test_opener.py" ];
+ disabledTestPaths = [
+ # Circular dependency with parameterized
+ "tests/test_move.py"
+ "tests/test_mirror.py"
+ "tests/test_copy.py"
+ ];
disabledTests =
- [ "user_data_repr" ]
+ [
+ "user_data_repr"
+ # https://github.com/PyFilesystem/pyfilesystem2/issues/568
+ "test_remove"
+ # Tests require network access
+ "TestFTPFS"
+ ]
++ lib.optionals (stdenv.hostPlatform.isDarwin) [
# remove if https://github.com/PyFilesystem/pyfilesystem2/issues/430#issue-707878112 resolved
"test_ftpfs"
- ]
- ++ lib.optionals (pythonAtLeast "3.9") [
- # update friend version of this commit: https://github.com/PyFilesystem/pyfilesystem2/commit/3e02968ce7da7099dd19167815c5628293e00040
- # merged into master, able to be removed after >2.4.1
- "test_copy_sendfile"
];
+ pythonImportsCheck = [ "fs" ];
+
__darwinAllowLocalNetworking = true;
meta = with lib; {
diff --git a/pkgs/development/python-modules/grpcio-channelz/default.nix b/pkgs/development/python-modules/grpcio-channelz/default.nix
index c1e6a20f17bf..8a1517b6b979 100644
--- a/pkgs/development/python-modules/grpcio-channelz/default.nix
+++ b/pkgs/development/python-modules/grpcio-channelz/default.nix
@@ -12,13 +12,13 @@
# nixpkgs-update: no auto update
buildPythonPackage rec {
pname = "grpcio-channelz";
- version = "1.67.0";
+ version = "1.68.1";
pyproject = true;
src = fetchPypi {
pname = "grpcio_channelz";
inherit version;
- hash = "sha256-F2Jfq6lOYn4RsjP9Ay21G67F6HkGeY3SIEk26Z0BWnE=";
+ hash = "sha256-6+mxJ3RTBtsXB7y46w3Fa5R8O2FnKbWde0UeJjnsttI=";
};
build-system = [ setuptools ];
diff --git a/pkgs/development/python-modules/grpcio-health-checking/default.nix b/pkgs/development/python-modules/grpcio-health-checking/default.nix
index ff73160db9a8..75249187dab7 100644
--- a/pkgs/development/python-modules/grpcio-health-checking/default.nix
+++ b/pkgs/development/python-modules/grpcio-health-checking/default.nix
@@ -11,13 +11,13 @@
# nixpkgs-update: no auto update
buildPythonPackage rec {
pname = "grpcio-health-checking";
- version = "1.67.0";
+ version = "1.68.1";
format = "setuptools";
src = fetchPypi {
pname = "grpcio_health_checking";
inherit version;
- hash = "sha256-PepxXVboJQ/wW6Se9RF/g2skD/N5vkY2DCbO/ZydsRo=";
+ hash = "sha256-6pNs+gxkokr9gAWHPqYbGsyDqUHAC1amM5ybIlyAoag=";
};
propagatedBuildInputs = [
diff --git a/pkgs/development/python-modules/grpcio-reflection/default.nix b/pkgs/development/python-modules/grpcio-reflection/default.nix
index b00a0bb51b73..eb6ba8dcbd47 100644
--- a/pkgs/development/python-modules/grpcio-reflection/default.nix
+++ b/pkgs/development/python-modules/grpcio-reflection/default.nix
@@ -12,13 +12,13 @@
# nixpkgs-update: no auto update
buildPythonPackage rec {
pname = "grpcio-reflection";
- version = "1.67.0";
+ version = "1.68.1";
pyproject = true;
src = fetchPypi {
pname = "grpcio_reflection";
inherit version;
- hash = "sha256-xHFDc4sYl7bOSvXg4zjIXJruX9y7M1XTaKjcrkbYkzw=";
+ hash = "sha256-z/yzPEy93ncaBv1Vym/hScb4nsMwyaQBBzC7KZhZeYI=";
};
build-system = [ setuptools ];
diff --git a/pkgs/development/python-modules/grpcio-status/default.nix b/pkgs/development/python-modules/grpcio-status/default.nix
index 27de864281cb..2dec36e979fa 100644
--- a/pkgs/development/python-modules/grpcio-status/default.nix
+++ b/pkgs/development/python-modules/grpcio-status/default.nix
@@ -13,7 +13,7 @@
# nixpkgs-update: no auto update
buildPythonPackage rec {
pname = "grpcio-status";
- version = "1.67.0";
+ version = "1.68.1";
format = "setuptools";
disabled = pythonOlder "3.6";
@@ -21,7 +21,7 @@ buildPythonPackage rec {
src = fetchPypi {
pname = "grpcio_status";
inherit version;
- hash = "sha256-w+Wob6AH6eJjzV+YioqQdITaTKq1godOoqSmCSc0BGs=";
+ hash = "sha256-4TeNA2yBoWENe0x6FGzWY90T/MkVz019BTkp26W7tuE=";
};
postPatch = ''
diff --git a/pkgs/development/python-modules/grpcio-testing/default.nix b/pkgs/development/python-modules/grpcio-testing/default.nix
index 1a174b5ba587..cf121cce3e6c 100644
--- a/pkgs/development/python-modules/grpcio-testing/default.nix
+++ b/pkgs/development/python-modules/grpcio-testing/default.nix
@@ -13,7 +13,7 @@
# nixpkgs-update: no auto update
buildPythonPackage rec {
pname = "grpcio-testing";
- version = "1.67.0";
+ version = "1.68.1";
pyproject = true;
disabled = pythonOlder "3.7";
@@ -21,7 +21,7 @@ buildPythonPackage rec {
src = fetchPypi {
pname = "grpcio_testing";
inherit version;
- hash = "sha256-YVRnu0aObDSfYCIKlrvMKin70hmwDdip96I+Qyi7+Dw=";
+ hash = "sha256-tK6vhvVlqPiCMxfwUVLABuVZDnfPafmCDtmzdb/WHrM=";
};
postPatch = ''
diff --git a/pkgs/development/python-modules/grpcio-tools/default.nix b/pkgs/development/python-modules/grpcio-tools/default.nix
index 51b1012a972e..29e206098294 100644
--- a/pkgs/development/python-modules/grpcio-tools/default.nix
+++ b/pkgs/development/python-modules/grpcio-tools/default.nix
@@ -12,13 +12,13 @@
# nixpkgs-update: no auto update
buildPythonPackage rec {
pname = "grpcio-tools";
- version = "1.67.0";
+ version = "1.68.1";
pyproject = true;
src = fetchPypi {
pname = "grpcio_tools";
inherit version;
- hash = "sha256-GBs9TmG4MULBguw2bzB5sAI1CXQ5huVMlGXKOMrCVfg=";
+ hash = "sha256-JBOhetFsnIIbNuSmf8ZMN7nkY2qxw6B3eAGIATeHObo=";
};
outputs = [
diff --git a/pkgs/development/python-modules/grpcio/default.nix b/pkgs/development/python-modules/grpcio/default.nix
index c8c98cd8a031..002d5dde36d6 100644
--- a/pkgs/development/python-modules/grpcio/default.nix
+++ b/pkgs/development/python-modules/grpcio/default.nix
@@ -18,14 +18,14 @@
# nixpkgs-update: no auto update
buildPythonPackage rec {
pname = "grpcio";
- version = "1.67.0";
+ version = "1.68.1";
pyproject = true;
disabled = pythonOlder "3.8";
src = fetchPypi {
inherit pname version;
- hash = "sha256-4JCyVT4Noch1RJyOdQc91EFd1xyb3mpAYkD99MDuRnw=";
+ hash = "sha256-RKhQLdXeZTrmpz4t5QpAHYQYTwMx0Kw9rrBE5m1cUFQ=";
};
outputs = [
diff --git a/pkgs/development/python-modules/numpy/2.nix b/pkgs/development/python-modules/numpy/2.nix
index db4d1fcc63ee..eb672a053f25 100644
--- a/pkgs/development/python-modules/numpy/2.nix
+++ b/pkgs/development/python-modules/numpy/2.nix
@@ -59,7 +59,7 @@ let
in
buildPythonPackage rec {
pname = "numpy";
- version = "2.1.3";
+ version = "2.2.0";
pyproject = true;
disabled = pythonOlder "3.10";
@@ -67,7 +67,7 @@ buildPythonPackage rec {
src = fetchPypi {
inherit pname version;
extension = "tar.gz";
- hash = "sha256-qgjgTgiq+XTURY3vU53s4NKBRthmo52lY5WW9JIf12E=";
+ hash = "sha256-FA3YD/iYGlg6YJgL4aZVBo+K3r96RaBqaFjIc/zc1KA=";
};
patches = lib.optionals python.hasDistutilsCxxPatch [
diff --git a/pkgs/development/python-modules/openstackdocstheme/default.nix b/pkgs/development/python-modules/openstackdocstheme/default.nix
index 7391fb37ba7a..c0e75fcab9b9 100644
--- a/pkgs/development/python-modules/openstackdocstheme/default.nix
+++ b/pkgs/development/python-modules/openstackdocstheme/default.nix
@@ -14,8 +14,7 @@ buildPythonPackage rec {
version = "3.4.0";
pyproject = true;
- # breaks on import due to distutils import through pbr.packaging
- disabled = pythonAtLeast "3.12";
+ disabled = pythonAtLeast "3.13";
src = fetchPypi {
inherit pname version;
diff --git a/pkgs/development/python-modules/pbr/default.nix b/pkgs/development/python-modules/pbr/default.nix
index bd45d03af892..d500a215be11 100644
--- a/pkgs/development/python-modules/pbr/default.nix
+++ b/pkgs/development/python-modules/pbr/default.nix
@@ -2,6 +2,7 @@
lib,
buildPythonPackage,
callPackage,
+ distutils,
fetchPypi,
setuptools,
six,
@@ -20,6 +21,7 @@ buildPythonPackage rec {
build-system = [ setuptools ];
dependencies = [
+ distutils # for distutils.command in pbr/packaging.py
setuptools # for pkg_resources
six
];
diff --git a/pkgs/development/python-modules/reno/default.nix b/pkgs/development/python-modules/reno/default.nix
new file mode 100644
index 000000000000..556374be3251
--- /dev/null
+++ b/pkgs/development/python-modules/reno/default.nix
@@ -0,0 +1,90 @@
+{
+ buildPythonApplication,
+ dulwich,
+ docutils,
+ lib,
+ fetchFromGitHub,
+ git,
+ gnupg,
+ pbr,
+ pyyaml,
+ setuptools,
+ sphinx,
+ stestr,
+ testtools,
+ testscenarios,
+}:
+
+buildPythonApplication rec {
+ pname = "reno";
+ version = "4.1.0";
+ pyproject = true;
+
+ src = fetchFromGitHub {
+ owner = "openstack";
+ repo = "reno";
+ rev = "refs/tags/${version}";
+ hash = "sha256-le9JtE0XODlYhTFsrjxFXG/Weshr+FyN4M4S3BMBLUE=";
+ };
+
+ env.PBR_VERSION = version;
+
+ build-system = [
+ setuptools
+ ];
+
+ dependencies = [
+ dulwich
+ pbr
+ pyyaml
+ setuptools
+ ];
+
+ nativeCheckInputs = [
+ # Python packages
+ docutils
+ sphinx
+ stestr
+ testtools
+ testscenarios
+
+ # Required programs to run all tests
+ git
+ gnupg
+ ];
+
+ checkPhase = ''
+ runHook preCheck
+ export HOME=$(mktemp -d)
+ stestr run -e <(echo "
+ # Expects to be run from a git repository
+ reno.tests.test_cache.TestCache.test_build_cache_db
+ reno.tests.test_semver.TestSemVer.test_major_post_release
+ reno.tests.test_semver.TestSemVer.test_major_working_and_post_release
+ reno.tests.test_semver.TestSemVer.test_major_working_copy
+ reno.tests.test_semver.TestSemVer.test_minor_post_release
+ reno.tests.test_semver.TestSemVer.test_minor_working_and_post_release
+ reno.tests.test_semver.TestSemVer.test_minor_working_copy
+ reno.tests.test_semver.TestSemVer.test_patch_post_release
+ reno.tests.test_semver.TestSemVer.test_patch_working_and_post_release
+ reno.tests.test_semver.TestSemVer.test_patch_working_copy
+ reno.tests.test_semver.TestSemVer.test_same
+ reno.tests.test_semver.TestSemVer.test_same_with_note
+ ")
+ runHook postCheck
+ '';
+
+ pythonImportsCheck = [ "reno" ];
+
+ postInstallCheck = ''
+ $out/bin/reno -h
+ '';
+
+ meta = with lib; {
+ description = "Release Notes Manager";
+ mainProgram = "reno";
+ homepage = "https://docs.openstack.org/reno/latest";
+ license = licenses.asl20;
+ maintainers = teams.openstack.members;
+ };
+}
diff --git a/pkgs/development/python-modules/six/default.nix b/pkgs/development/python-modules/six/default.nix
index 89e77586339b..4eeb2129738e 100644
--- a/pkgs/development/python-modules/six/default.nix
+++ b/pkgs/development/python-modules/six/default.nix
@@ -1,22 +1,26 @@
{
lib,
buildPythonPackage,
- fetchPypi,
+ fetchFromGitHub,
isPyPy,
pytestCheckHook,
+ setuptools,
}:
buildPythonPackage rec {
pname = "six";
- version = "1.16.0";
+ version = "1.17.0";
+ pyproject = true;
- format = "setuptools";
-
- src = fetchPypi {
- inherit pname version;
- sha256 = "1e61c37477a1626458e36f7b1d82aa5c9b094fa4802892072e49de9c60c4c926";
+ src = fetchFromGitHub {
+ owner = "benjaminp";
+ repo = "six";
+ rev = "refs/tags/${version}";
+ hash = "sha256-tz99C+dz5xJhunoC45bl0NdSdV9NXWya9ti48Z/KaHY=";
};
+ build-system = [ setuptools ];
+
nativeCheckInputs = [ pytestCheckHook ];
pytestFlagsArray =
diff --git a/pkgs/development/python-modules/waitress/default.nix b/pkgs/development/python-modules/waitress/default.nix
index 933823a748c5..79e9b73780bb 100644
--- a/pkgs/development/python-modules/waitress/default.nix
+++ b/pkgs/development/python-modules/waitress/default.nix
@@ -2,25 +2,40 @@
lib,
buildPythonPackage,
fetchPypi,
+ setuptools,
+ pytestCheckHook,
+ pytest-cov-stub,
}:
buildPythonPackage rec {
pname = "waitress";
- version = "3.0.0";
- format = "setuptools";
+ version = "3.0.2";
+ pyproject = true;
src = fetchPypi {
inherit pname version;
- hash = "sha256-AF2kebBBNM3Z3WAtHufEnXneBTdhDWU2dMxsveIiuKE=";
+ hash = "sha256-aCqq8q8MRK2kq/tw3tNjk/DjB/SrlFaiFc4AILrvwx8=";
};
- doCheck = false;
+ build-system = [ setuptools ];
+
+ pythonImportsCheck = [ "waitress" ];
+
+ nativeCheckInputs = [
+ pytestCheckHook
+ pytest-cov-stub
+ ];
+
+ disabledTests = [
+ # access to socket
+ "test_service_port"
+ ];
meta = with lib; {
homepage = "https://github.com/Pylons/waitress";
description = "Waitress WSGI server";
mainProgram = "waitress-serve";
- license = licenses.zpl20;
+ license = licenses.zpl21;
maintainers = with maintainers; [ domenkozar ];
};
}
diff --git a/pkgs/development/python-modules/wheel/default.nix b/pkgs/development/python-modules/wheel/default.nix
index 4c7a5b3dc288..34dc95153170 100644
--- a/pkgs/development/python-modules/wheel/default.nix
+++ b/pkgs/development/python-modules/wheel/default.nix
@@ -7,14 +7,14 @@
buildPythonPackage rec {
pname = "wheel";
- version = "0.44.0";
- format = "pyproject";
+ version = "0.45.1";
+ pyproject = true;
src = fetchFromGitHub {
owner = "pypa";
repo = "wheel";
rev = "refs/tags/${version}";
- hash = "sha256-IFJ411H5nItR8gA5R0AYXFs3n6e1SLo2VoMOqgvDnnk=";
+ hash = "sha256-tgueGEWByS5owdA5rhXGn3qh1Vtf0HGYC6+BHfrnGAs=";
postFetch = ''
cd $out
mv tests/testdata/unicode.dist/unicodedist/åäö_日本語.py \