File tree Expand file tree Collapse file tree 1 file changed +15
-5
lines changed
pkgs/development/python-modules/pynndescent Expand file tree Collapse file tree 1 file changed +15
-5
lines changed Original file line number Diff line number Diff line change 1717 pytestCheckHook ,
1818} :
1919
20- buildPythonPackage rec {
20+ buildPythonPackage ( finalAttrs : {
2121 pname = "pynndescent" ;
2222 version = "0.6.0" ;
2323 pyproject = true ;
2424
2525 src = fetchFromGitHub {
2626 owner = "lmcinnes" ;
2727 repo = "pynndescent" ;
28- tag = "release-${ version } " ;
28+ tag = "release-${ finalAttrs . version } " ;
2929 hash = "sha256-RfIbPPyx+Y7niuFrLjA02cUDHTSv9s5E4JiXv4ZBNEc=" ;
3030 } ;
3131
@@ -39,14 +39,24 @@ buildPythonPackage rec {
3939 scipy
4040 ] ;
4141
42+ pythonImportsCheck = [ "pynndescent" ] ;
43+
4244 nativeCheckInputs = [ pytestCheckHook ] ;
4345
44- pythonImportsCheck = [ "pynndescent" ] ;
46+ disabledTests = [
47+ # AssertionError: Arrays are not almost equal to 6 decimals
48+ "test_seuclidean"
49+
50+ # sklearn.utils._param_validation.InvalidParameterError: The 'metric' parameter of
51+ # pairwise_distances must be a str among ...
52+ "test_binary_check"
53+ "test_sparse_binary_check"
54+ ] ;
4555
4656 meta = {
4757 description = "Nearest Neighbor Descent" ;
4858 homepage = "https://github.com/lmcinnes/pynndescent" ;
49- changelog = "https://github.com/lmcinnes/pynndescent/releases/tag/release- ${ src . tag } " ;
59+ changelog = "https://github.com/lmcinnes/pynndescent/releases/tag/${ finalAttrs . src . tag } " ;
5060 license = lib . licenses . bsd2 ;
5161 maintainers = with lib . maintainers ; [ mic92 ] ;
5262 badPlatforms = [
@@ -55,4 +65,4 @@ buildPythonPackage rec {
5565 "aarch64-linux"
5666 ] ;
5767 } ;
58- }
68+ } )
You can’t perform that action at this time.
0 commit comments