python311Packages.bytewax: 0.17.1 -> 0.17.2

https://github.com/bytewax/bytewax/releases/tag/v0.17.2
This commit is contained in:
Martin Weinelt
2023-12-20 20:46:38 +01:00
parent 3a7621cd0c
commit e3e4d372cd
3 changed files with 351 additions and 1185 deletions
File diff suppressed because it is too large Load Diff
@@ -1,22 +1,33 @@
{ lib
, stdenv
, buildPythonPackage
, cmake
, confluent-kafka
, cyrus_sasl
, fetchFromGitHub
, openssl
, pkg-config
, protobuf
, pytestCheckHook
, pythonOlder
# build-system
, cmake
, pkg-config
, rustPlatform
, setuptools-rust
# native dependencies
, cyrus_sasl
, openssl
, protobuf
# dependencies
, jsonpickle
# optional dependencies
, confluent-kafka
# test
, myst-docutils
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "bytewax";
version = "0.17.1";
version = "0.17.2";
format = "pyproject";
disabled = pythonOlder "3.7";
@@ -25,7 +36,7 @@ buildPythonPackage rec {
owner = "bytewax";
repo = pname;
rev = "refs/tags/v${version}";
hash = "sha256-Cv2bTgs3XfYOcHK628/RgGol7S6E4WfHb7gHXXjBhig=";
hash = "sha256-BecZvBJsaTHIhJhWM9GZldSL6Irrc7fiedulTN9e76I=";
};
env = {
@@ -34,13 +45,16 @@ buildPythonPackage rec {
# Remove docs tests, myst-docutils in nixpkgs is not compatible with package requirements.
# Package uses old version.
patches = [ ./remove-docs-test.patch ];
patches = [
./remove-docs-test.patch
];
cargoDeps = rustPlatform.importCargoLock {
lockFile = ./Cargo.lock;
outputHashes = {
"columnation-0.1.0" = "sha256-RAyZKR+sRmeWGh7QYPZnJgX9AtWqmca85HcABEFUgX8=";
"timely-0.12.0" = "sha256-sZuVLBDCXurIe38m4UAjEuFeh73VQ5Jawy+sr3U/HbI=";
"libsqlite3-sys-0.26.0" = "sha256-WpJA+Pm5dWKcdUrP0xS5ps/oE/yAXuQvvsdyDfDet1o=";
};
};
@@ -59,6 +73,10 @@ buildPythonPackage rec {
protobuf
];
propagatedBuildInputs = [
jsonpickle
];
passthru.optional-dependencies = {
kafka = [
confluent-kafka
@@ -70,9 +88,15 @@ buildPythonPackage rec {
'';
checkInputs = [
myst-docutils
pytestCheckHook
] ++ lib.flatten (builtins.attrValues passthru.optional-dependencies);
disabledTestPaths = [
# dependens on an old myst-docutils version
"docs"
];
pythonImportsCheck = [
"bytewax"
];
@@ -1,10 +1,12 @@
diff --git a/pyproject.toml b/pyproject.toml
index 41b5c90..e7c7b2d 100644
index 107cab8..34cc544 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -50,6 +50,5 @@ doctest_optionflags = "NORMALIZE_WHITESPACE"
@@ -66,7 +66,6 @@ long_description_content_type = "text/markdown"
addopts = "-v --doctest-modules"
doctest_optionflags = "NORMALIZE_WHITESPACE"
testpaths = [
"pytests",
"pysrc",
- "docs",
"pysrc",
"pytests",
]