Merge pull request #310168 from annaleeleaves/slicer-nopatches

python31{1,2}Packages.{slicer,shap}: {remove old patches, 0.45.0 -> 0.45.1}

authored by Weijia Wang and committed by GitHub d5ce1159 470256d0

+4 -26
+2 -2
pkgs/development/python-modules/shap/default.nix
··· 31 32 buildPythonPackage rec { 33 pname = "shap"; 34 - version = "0.45.0"; 35 pyproject = true; 36 37 disabled = pythonOlder "3.8"; ··· 40 owner = "slundberg"; 41 repo = "shap"; 42 rev = "refs/tags/v${version}"; 43 - hash = "sha256-x8845saPoLsWu3Z8Thkhqo3HeLmfAZANj3KE0ftVqZc="; 44 }; 45 46 nativeBuildInputs = [
··· 31 32 buildPythonPackage rec { 33 pname = "shap"; 34 + version = "0.45.1"; 35 pyproject = true; 36 37 disabled = pythonOlder "3.8"; ··· 40 owner = "slundberg"; 41 repo = "shap"; 42 rev = "refs/tags/v${version}"; 43 + hash = "sha256-REMAubT9WRe0exfhO4UCLt3FFQHq4HApHnI6i2F/V1o="; 44 }; 45 46 nativeBuildInputs = [
+2 -24
pkgs/development/python-modules/slicer/default.nix
··· 13 buildPythonPackage rec { 14 pname = "slicer"; 15 version = "0.0.8"; 16 - format = "setuptools"; 17 - disabled = pythonOlder "3.6"; 18 19 src = fetchPypi { 20 inherit pname version; ··· 25 dos2unix slicer/* 26 ''; 27 28 - patches = [ 29 - # these patches add support for numpy>=1.24 30 - (fetchpatch { 31 - url = "https://github.com/interpretml/slicer/commit/028e09e639c4a3c99abe1d537cce30af2eebb081.patch"; 32 - hash = "sha256-jh/cbz7cx2ks6jMNh1gI1n5RS/OHBtSIDZRxUGyrl/I="; 33 - }) 34 - (fetchpatch { 35 - url = "https://github.com/interpretml/slicer/commit/d4bb09f136d7e1f64711633c16a37e7bee738696.patch"; 36 - hash = "sha256-9rh99s4JWF4iKClZ19jvqSeRulL32xB5Use8PGkh/SA="; 37 - }) 38 - (fetchpatch { 39 - url = "https://github.com/interpretml/slicer/commit/74b3683a5a7bd982f9eaaf8d8d665dfdaf2c6604.patch"; 40 - hash = "sha256-R3zsC3udYPFUT93eRhb6wyc9S5n2wceiOunWJ8K+648="; 41 - }) 42 - ]; 43 - 44 nativeBuildInputs = [ 45 dos2unix 46 ]; 47 48 nativeCheckInputs = [ pytestCheckHook pandas torch scipy ]; 49 - 50 - disabledTests = [ 51 - # IndexError: too many indices for array 52 - "test_slicer_sparse" 53 - "test_operations_2d" 54 - ]; 55 56 meta = with lib; { 57 description = "Wraps tensor-like objects and provides a uniform slicing interface via __getitem__";
··· 13 buildPythonPackage rec { 14 pname = "slicer"; 15 version = "0.0.8"; 16 + pyproject = true; 17 + disabled = pythonOlder "3.8"; 18 19 src = fetchPypi { 20 inherit pname version; ··· 25 dos2unix slicer/* 26 ''; 27 28 nativeBuildInputs = [ 29 dos2unix 30 ]; 31 32 nativeCheckInputs = [ pytestCheckHook pandas torch scipy ]; 33 34 meta = with lib; { 35 description = "Wraps tensor-like objects and provides a uniform slicing interface via __getitem__";