forked from mirrors/nixpkgs
Merge pull request #219366 from MortenSlingsby/bytewax
python310Packages.bytewax: init at 0.15.1
This commit is contained in:
commit
ee22ee91e0
|
@ -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";
|
||||
|
|
72
pkgs/development/python-modules/bytewax/default.nix
Normal file
72
pkgs/development/python-modules/bytewax/default.nix
Normal 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;
|
||||
};
|
||||
}
|
|
@ -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",
|
||||
]
|
|
@ -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 { };
|
||||
|
|
Loading…
Reference in a new issue