[staging-next] python3Packages: various fixes (#536350)
This commit is contained in:
@@ -62,6 +62,13 @@ buildPythonPackage rec {
|
||||
|
||||
nativeCheckInputs = [ pytestCheckHook ];
|
||||
|
||||
disabledTests = [
|
||||
# DeprecationWarning: The 'generic' unit for NumPy timedelta is deprecated,
|
||||
# and will raise an error in the future. This includes implicit conversion of bare
|
||||
# integers (e.g. `+ 1`).Please use a specific unit instead.
|
||||
"test_import_without_warning"
|
||||
];
|
||||
|
||||
# Workaround https://github.com/NixOS/nixpkgs/issues/123561
|
||||
preCheck = ''
|
||||
mv fastparquet/test .
|
||||
|
||||
@@ -143,6 +143,11 @@ buildPythonPackage (finalAttrs: {
|
||||
"test_resample_stereo"
|
||||
];
|
||||
|
||||
disabledTestPaths = [
|
||||
# matplotlib 3.11 exceeds tolerances for image comparison
|
||||
"tests/test_display.py"
|
||||
];
|
||||
|
||||
meta = {
|
||||
description = "Python library for audio and music analysis";
|
||||
homepage = "https://github.com/librosa/librosa";
|
||||
|
||||
@@ -90,6 +90,8 @@ buildPythonPackage rec {
|
||||
"test_gethostbyname"
|
||||
# httpx read failure
|
||||
"test_no_dangling_fds"
|
||||
# redis-py response mismatch
|
||||
"test_hgetall"
|
||||
]
|
||||
++ lib.optionals stdenv.hostPlatform.isDarwin [
|
||||
# fails on darwin due to upstream bug: https://github.com/mindflayer/python-mocket/issues/287
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
let
|
||||
self = buildPythonPackage rec {
|
||||
pname = "opentelemetry-api";
|
||||
version = "1.40.0";
|
||||
version = "1.43.0";
|
||||
pyproject = true;
|
||||
|
||||
# to avoid breakage, every package in opentelemetry-python must inherit this version, src, and meta
|
||||
@@ -22,7 +22,7 @@ let
|
||||
owner = "open-telemetry";
|
||||
repo = "opentelemetry-python";
|
||||
tag = "v${version}";
|
||||
hash = "sha256-1KVy9s+zjlB4w7E45PMCWRxPus24bgBmmM3k2R9d+Jg=";
|
||||
hash = "sha256-NnRx0sMVlht2CVXeKjP7mZlzhyOqU/YyveDMWRbmAD8=";
|
||||
};
|
||||
|
||||
sourceRoot = "${src.name}/opentelemetry-api";
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
{
|
||||
buildPythonPackage,
|
||||
fetchpatch,
|
||||
requests,
|
||||
hatchling,
|
||||
opentelemetry-api,
|
||||
@@ -8,7 +7,9 @@
|
||||
opentelemetry-semantic-conventions,
|
||||
opentelemetry-util-http,
|
||||
httpretty,
|
||||
mocket,
|
||||
opentelemetry-test-utils,
|
||||
pytest-benchmark,
|
||||
pytestCheckHook,
|
||||
}:
|
||||
|
||||
@@ -19,16 +20,6 @@ buildPythonPackage {
|
||||
|
||||
sourceRoot = "${opentelemetry-instrumentation.src.name}/instrumentation/opentelemetry-instrumentation-requests";
|
||||
|
||||
patches = [
|
||||
# remove hardcoded requests version from fixtures
|
||||
(fetchpatch {
|
||||
url = "https://github.com/open-telemetry/opentelemetry-python-contrib/commit/69a94e0c3b25edfdc4abeb18a4d26f5b7532e7ba.patch";
|
||||
stripLen = 2;
|
||||
includes = [ "tests/test_requests_integration.py" ];
|
||||
hash = "sha256-JGWJVHR6lAg8bG1fpfJ4BJbqipnVFRLV7i/bKwOmtPk=";
|
||||
})
|
||||
];
|
||||
|
||||
build-system = [ hatchling ];
|
||||
|
||||
dependencies = [
|
||||
@@ -41,10 +32,16 @@ buildPythonPackage {
|
||||
|
||||
nativeCheckInputs = [
|
||||
httpretty
|
||||
mocket
|
||||
opentelemetry-test-utils
|
||||
pytest-benchmark
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
pytestFlags = [
|
||||
"--benchmark-disable"
|
||||
];
|
||||
|
||||
pythonImportsCheck = [ "opentelemetry.instrumentation.requests" ];
|
||||
|
||||
meta = opentelemetry-instrumentation.meta // {
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
|
||||
buildPythonPackage (finalAttrs: {
|
||||
pname = "opentelemetry-instrumentation";
|
||||
version = "0.61b0";
|
||||
version = "0.64b0";
|
||||
pyproject = true;
|
||||
|
||||
# To avoid breakage, every package in opentelemetry-python-contrib must inherit this version, src, and meta
|
||||
@@ -20,7 +20,7 @@ buildPythonPackage (finalAttrs: {
|
||||
owner = "open-telemetry";
|
||||
repo = "opentelemetry-python-contrib";
|
||||
tag = "v${finalAttrs.version}";
|
||||
hash = "sha256-DT13gcYPNYXBPnf622WsA16C+7sabJfOshDquHn06Ok=";
|
||||
hash = "sha256-dOcDzJD1xxCN7+Zrn+2mF/gbZjy/XC6uAKDhpfYLf98=";
|
||||
};
|
||||
|
||||
sourceRoot = "${finalAttrs.src.name}/opentelemetry-instrumentation";
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
|
||||
buildPythonPackage (finalAttrs: {
|
||||
pname = "opentelemetry-resourcedetector-gcp";
|
||||
version = "1.11.0a0";
|
||||
version = "1.12.0a0";
|
||||
pyproject = true;
|
||||
|
||||
# Use PyPi instead of GitHub because the GitHub tags are inaccurate
|
||||
@@ -20,7 +20,7 @@ buildPythonPackage (finalAttrs: {
|
||||
src = fetchPypi {
|
||||
pname = "opentelemetry_resourcedetector_gcp";
|
||||
inherit (finalAttrs) version;
|
||||
hash = "sha256-kVodb9FdrKnu3T/FKw9wU3UFTy7xQOLnprTMqVpHzbE=";
|
||||
hash = "sha256-1eP3goOicuuSVH4Au+/0W3Myo0rnkacKtOuoGvm8O68=";
|
||||
};
|
||||
|
||||
build-system = [ setuptools ];
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
pytestCheckHook,
|
||||
}:
|
||||
let
|
||||
version = "0.4.15";
|
||||
version = "0.5.1";
|
||||
in
|
||||
buildPythonPackage {
|
||||
pname = "opentelemetry-semantic-conventions-ai";
|
||||
@@ -18,7 +18,7 @@ buildPythonPackage {
|
||||
src = fetchPypi {
|
||||
pname = "opentelemetry_semantic_conventions_ai";
|
||||
inherit version;
|
||||
hash = "sha256-Et4XLR4R0hxugrv1eMfopxNYmn/adq+e14VjJWSii4E=";
|
||||
hash = "sha256-FTkGIA2MHS+OCb142+9SaRYCPehaw9qzWRK/r7af8Ew=";
|
||||
};
|
||||
|
||||
build-system = [ hatchling ];
|
||||
|
||||
@@ -5,6 +5,7 @@
|
||||
opentelemetry-api,
|
||||
opentelemetry-instrumentation,
|
||||
opentelemetry-sdk,
|
||||
requests,
|
||||
}:
|
||||
|
||||
buildPythonPackage {
|
||||
@@ -23,6 +24,7 @@ buildPythonPackage {
|
||||
asgiref
|
||||
opentelemetry-api
|
||||
opentelemetry-sdk
|
||||
requests
|
||||
];
|
||||
|
||||
pythonImportsCheck = [ "opentelemetry.test" ];
|
||||
|
||||
@@ -14,14 +14,14 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "vcrpy";
|
||||
version = "8.1.1";
|
||||
version = "8.2.1";
|
||||
pyproject = true;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "kevin1024";
|
||||
repo = "vcrpy";
|
||||
tag = "v${version}";
|
||||
hash = "sha256-X6cOoj+XP0lVvf78FTb7FkNqrq5RfXtQlQ3lcOzr3D8=";
|
||||
hash = "sha256-PlpbBzAj9a4bAfORGozAAsbrzngJt2Pnnp3bI96wYfI=";
|
||||
};
|
||||
|
||||
build-system = [ setuptools ];
|
||||
|
||||
Reference in New Issue
Block a user