Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

python310Packages.bytewax: init at 0.15.1 #219366

Merged
merged 2 commits into from Apr 18, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 6 additions & 0 deletions maintainers/maintainer-list.nix
Expand Up @@ -10572,6 +10572,12 @@
githubId = 133448;
name = "Mikołaj Siedlarek";
};
mslingsby = {
email = "morten.slingsby@eviny.no";
github = "MortenSlingsby";
githubId = 111859550;
name = "Morten Slingsby";
};
msm = {
email = "msm@tailcall.net";
github = "msm-code";
Expand Down
72 changes: 72 additions & 0 deletions pkgs/development/python-modules/bytewax/default.nix
@@ -0,0 +1,72 @@
{ lib
, stdenv
, buildPythonPackage
, fetchFromGitHub
, rustPlatform
, setuptools-rust
, openssl
, pkg-config
, cyrus_sasl
, protobuf
, cmake
, gcc
, dill
, multiprocess
, pytestCheckHook
, pythonAtLeast
}:

buildPythonPackage rec {
pname = "bytewax";
version = "0.15.1";
format = "pyproject";

disabled = pythonAtLeast "3.11";

src = fetchFromGitHub {
owner = "bytewax";
repo = pname;
rev = "v${version}";
hash = "sha256-4HZUu3WSrhxusvuVz8+8mndTu/9DML1tCH52eaWy+oE=";
};

# Remove docs tests, myst-docutils in nixpkgs is not compatible with package requirements.
# Package uses old version.
SuperSandro2000 marked this conversation as resolved.
Show resolved Hide resolved
patches = [ ./remove-docs-test.patch ];

cargoDeps = rustPlatform.fetchCargoTarball {
inherit src;
hash = "sha256-IfVX3k9AsqP84aagCLSwxmutUoEkP8haD+t+VY4V02U=";
};

nativeBuildInputs = [
cmake
pkg-config
rustPlatform.maturinBuildHook
rustPlatform.cargoSetupHook
];

dontUseCmakeConfigure = true;

buildInputs = [
openssl
cyrus_sasl
protobuf
];

propagatedBuildInputs = [
dill
multiprocess
];

checkInputs = [ pytestCheckHook ];
SuperSandro2000 marked this conversation as resolved.
Show resolved Hide resolved

meta = with lib; {
description = "Python Stream Processing";
homepage = "https://github.com/bytewax/bytewax";
license = licenses.asl20;
maintainers = with maintainers; [ mslingsby kfollesdal ];
SuperSandro2000 marked this conversation as resolved.
Show resolved Hide resolved
# mismatched type expected u8, found i8
broken = stdenv.isAarch64;
};
}
10 changes: 10 additions & 0 deletions pkgs/development/python-modules/bytewax/remove-docs-test.patch
@@ -0,0 +1,10 @@
diff --git a/pyproject.toml b/pyproject.toml
index 9b6ee4b..4a82c15 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -56,5 +56,4 @@ testpaths = [

# TODO: Turn back on markdown tests once we stabilize inputs.

- "docs",
]
2 changes: 2 additions & 0 deletions pkgs/top-level/python-packages.nix
Expand Up @@ -1535,6 +1535,8 @@ self: super: with self; {

bytecode = callPackage ../development/python-modules/bytecode { };

bytewax = callPackage ../development/python-modules/bytewax { };

bz2file = callPackage ../development/python-modules/bz2file { };

cachecontrol = callPackage ../development/python-modules/cachecontrol { };
Expand Down