about summary refs log tree commit diff
path: root/pkgs/development/python-modules/cramjam
diff options
context:
space:
mode:
authorMartin Weinelt <hexa@darmstadt.ccc.de>2023-01-04 17:05:51 +0100
committerMartin Weinelt <hexa@darmstadt.ccc.de>2023-01-05 13:20:52 +0100
commit658b24a851f77c46bb11d8f515ee6962003f0462 (patch)
treef0adc3b7693ef5abf73925e3096a08f1e8f879fc /pkgs/development/python-modules/cramjam
parent0ad81bc718d197c4eae6e5a6a085c51cc6e5f3b8 (diff)
python3Packages.cramjam: 2.4.0 -> 2.6.2.post1
Diffstat (limited to 'pkgs/development/python-modules/cramjam')
-rw-r--r--pkgs/development/python-modules/cramjam/default.nix27
1 files changed, 21 insertions, 6 deletions
diff --git a/pkgs/development/python-modules/cramjam/default.nix b/pkgs/development/python-modules/cramjam/default.nix
index a88cc233ad567..b132a0d02a7b8 100644
--- a/pkgs/development/python-modules/cramjam/default.nix
+++ b/pkgs/development/python-modules/cramjam/default.nix
@@ -5,9 +5,11 @@
 , stdenv
 , libiconv
 , brotli
+, hypothesis
 , lz4
 , memory_profiler
 , numpy
+, py
 , pytest-benchmark
 , pytestCheckHook
 , python-snappy
@@ -16,39 +18,52 @@
 
 buildPythonPackage rec {
   pname = "cramjam";
-  version = "2.4.0";
+  version = "2.6.2.post1";
   format = "pyproject";
 
   src = fetchFromGitHub {
     owner = "milesgranger";
     repo = "pyrus-cramjam";
-    rev = "v${version}";
-    sha256 = "sha256-00KvbiTf8PxYWljLKTRZmPIAbb+PnBleDM4p0AzZhHw=";
+    rev = "refs/tags/v${version}";
+    hash = "sha256-KU1JVNEQJadXNiIWTvI33N2NSq994xoKxcAGGezFjaI=";
   };
 
   cargoDeps = rustPlatform.fetchCargoTarball {
     inherit src;
-    sha256 = "sha256-4y/jeEZjVUbaXtBx5l3Hrbnj3iNYX089K4xexRP+5v0=";
+    hash = "sha256-w1bEf+etLgR/YOyLmC3lFtO9fqAx8z2aul/XIKUQb5k=";
   };
 
   nativeBuildInputs = with rustPlatform; [
     cargoSetupHook
     maturinBuildHook
   ];
+
   buildInputs = lib.optional stdenv.isDarwin libiconv;
 
   checkInputs = [
     brotli
+    hypothesis
     lz4
     memory_profiler
     numpy
+    py
     pytest-benchmark
     pytestCheckHook
     python-snappy
     zstd
   ];
-  pytestFlagsArray = [ "--benchmark-disable" ];
-  pythonImportsCheck = [ "cramjam" ];
+
+  pytestFlagsArray = [
+    "--benchmark-disable"
+  ];
+
+  disabledTestPaths = [
+    "benchmarks/test_bench.py"
+  ];
+
+  pythonImportsCheck = [
+    "cramjam"
+  ];
 
   meta = with lib; {
     description = "Thin Python bindings to de/compression algorithms in Rust";