3
0
Fork 0
forked from mirrors/nixpkgs

Merge pull request #219366 from MortenSlingsby/bytewax

python310Packages.bytewax: init at 0.15.1
This commit is contained in:
Sandro 2023-04-18 17:59:45 +02:00 committed by GitHub
commit ee22ee91e0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 90 additions and 0 deletions

View file

@ -10582,6 +10582,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";

View file

@ -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.
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 ];
meta = with lib; {
description = "Python Stream Processing";
homepage = "https://github.com/bytewax/bytewax";
license = licenses.asl20;
maintainers = with maintainers; [ mslingsby kfollesdal ];
# mismatched type expected u8, found i8
broken = stdenv.isAarch64;
};
}

View file

@ -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",
]

View file

@ -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 { };