python3Packages.cramjam: 2.4.0 -> 2.6.2.post1

This commit is contained in:
Martin Weinelt 2023-01-04 17:05:51 +01:00
parent 0ad81bc718
commit 658b24a851

View file

@ -5,9 +5,11 @@
, stdenv , stdenv
, libiconv , libiconv
, brotli , brotli
, hypothesis
, lz4 , lz4
, memory_profiler , memory_profiler
, numpy , numpy
, py
, pytest-benchmark , pytest-benchmark
, pytestCheckHook , pytestCheckHook
, python-snappy , python-snappy
@ -16,39 +18,52 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "cramjam"; pname = "cramjam";
version = "2.4.0"; version = "2.6.2.post1";
format = "pyproject"; format = "pyproject";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "milesgranger"; owner = "milesgranger";
repo = "pyrus-cramjam"; repo = "pyrus-cramjam";
rev = "v${version}"; rev = "refs/tags/v${version}";
sha256 = "sha256-00KvbiTf8PxYWljLKTRZmPIAbb+PnBleDM4p0AzZhHw="; hash = "sha256-KU1JVNEQJadXNiIWTvI33N2NSq994xoKxcAGGezFjaI=";
}; };
cargoDeps = rustPlatform.fetchCargoTarball { cargoDeps = rustPlatform.fetchCargoTarball {
inherit src; inherit src;
sha256 = "sha256-4y/jeEZjVUbaXtBx5l3Hrbnj3iNYX089K4xexRP+5v0="; hash = "sha256-w1bEf+etLgR/YOyLmC3lFtO9fqAx8z2aul/XIKUQb5k=";
}; };
nativeBuildInputs = with rustPlatform; [ nativeBuildInputs = with rustPlatform; [
cargoSetupHook cargoSetupHook
maturinBuildHook maturinBuildHook
]; ];
buildInputs = lib.optional stdenv.isDarwin libiconv; buildInputs = lib.optional stdenv.isDarwin libiconv;
checkInputs = [ checkInputs = [
brotli brotli
hypothesis
lz4 lz4
memory_profiler memory_profiler
numpy numpy
py
pytest-benchmark pytest-benchmark
pytestCheckHook pytestCheckHook
python-snappy python-snappy
zstd zstd
]; ];
pytestFlagsArray = [ "--benchmark-disable" ];
pythonImportsCheck = [ "cramjam" ]; pytestFlagsArray = [
"--benchmark-disable"
];
disabledTestPaths = [
"benchmarks/test_bench.py"
];
pythonImportsCheck = [
"cramjam"
];
meta = with lib; { meta = with lib; {
description = "Thin Python bindings to de/compression algorithms in Rust"; description = "Thin Python bindings to de/compression algorithms in Rust";