nixpkgs/pkgs/development/python-modules/array-record/default.nix
Martin Weinelt 8ea6bde88d
treewide: prune pythonOlder 3.10/3.11
This is a post 3.10 removal cleanup.
2026-02-15 04:33:54 +01:00

55 lines
1.4 KiB
Nix

{
lib,
buildPythonPackage,
pythonAtLeast,
python,
fetchPypi,
absl-py,
etils,
}:
buildPythonPackage rec {
pname = "array-record";
version = "0.8.3";
format = "wheel";
disabled = pythonAtLeast "3.15";
src =
let
pyShortVersion = "cp${builtins.replaceStrings [ "." ] [ "" ] python.pythonVersion}";
in
fetchPypi {
inherit version;
format = "wheel";
pname = "array_record";
dist = pyShortVersion;
python = pyShortVersion;
abi = pyShortVersion;
platform = "manylinux2014_x86_64.manylinux_2_17_x86_64";
hash =
{
cp311 = "sha256-9ABPzOt5YaLMAJACjmij7rkdP1s4wA1gtTP3AE0dP3s=";
cp312 = "sha256-RY9mWN6GyTabI//mTcsxOTqRm5GuLxUUfuK+sgELEio=";
cp313 = "sha256-E98a7Js4r+mJc79f489SP4PKkEsEI9hTGZMIdxRbjyg=";
cp314 = "sha256-idLPX0cJvjxsKzDA02YAUiM3VjP/zmbcsT2SegvcUig=";
}
.${pyShortVersion} or (throw "${pname} is missing hash for ${pyShortVersion}");
};
dependencies = [
absl-py
etils
]
++ etils.optional-dependencies.epath;
pythonImportsCheck = [ "array_record" ];
meta = {
description = "New file format derived from Riegeli, achieving a new frontier of IO efficiency";
homepage = "https://github.com/google/array_record";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ GaetanLepage ];
platforms = [ "x86_64-linux" ];
};
}