Files
nixpkgs/pkgs/development/python-modules/ormsgpack/default.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

77 lines
1.3 KiB
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
cargo,
rustPlatform,
rustc,
pyinstaller,
# dependencies
msgpack,
# testing
pydantic,
pytestCheckHook,
python-dateutil,
pytz,
}:
buildPythonPackage rec {
pname = "ormsgpack";
version = "1.10.0";
pyproject = true;
src = fetchFromGitHub {
owner = "aviramha";
repo = "ormsgpack";
tag = version;
hash = "sha256-7VESiHAkDynf31xrQQh0Vv5vSfMOjnVXRFackUQdB68=";
};
cargoDeps = rustPlatform.fetchCargoVendor {
inherit src;
hash = "sha256-um6PzwL0M5lz4gDkTO/lvWJ0wwuCneNKRW8qysKMmM0=";
};
build-system = [
cargo
rustPlatform.cargoSetupHook
rustPlatform.maturinBuildHook
rustc
];
# requires nightly features (feature(portable_simd))
env.RUSTC_BOOTSTRAP = true;
dependencies = [
msgpack
];
nativeBuildInputs = [
pyinstaller
];
nativeCheckInputs = [
pytestCheckHook
pydantic
python-dateutil
pytz
];
pythonImportsCheck = [
"ormsgpack"
];
meta = {
description = "Fast msgpack serialization library for Python derived from orjson";
homepage = "https://github.com/aviramha/ormsgpack";
changelog = "https://github.com/aviramha/ormsgpack/releases/tag/${version}";
license = with lib.licenses; [
asl20
mit
];
maintainers = with lib.maintainers; [ sarahec ];
};
}