mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-24 07:53:19 +00:00
python3Packages.python-louvain: fix test karate
Also add pandas, scipy to checkInputs
This commit is contained in:
parent
87d9910cef
commit
22f3d34c93
@ -1,7 +1,10 @@
|
||||
{ lib
|
||||
, fetchPypi
|
||||
, buildPythonPackage
|
||||
, fetchpatch
|
||||
, networkx
|
||||
, pandas
|
||||
, scipy
|
||||
, numpy }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
@ -13,10 +16,21 @@ buildPythonPackage rec {
|
||||
sha256 = "sha256-t7ot9QAv0o0+54mklTK6rRH+ZI5PIRfPB5jnUgodpWs=";
|
||||
};
|
||||
|
||||
patches = [
|
||||
# Fix test_karate
|
||||
(fetchpatch {
|
||||
name = "fix-karate-test-networkx-2.7.patch";
|
||||
url = "https://github.com/taynaud/python-louvain/pull/95/commits/c95d767e72f580cb15319fe08d72d87c9976640b.patch";
|
||||
sha256 = "sha256-9oJ9YvKl2sI8oGhfyauNS+HT4kXsDt0L8S2owluWdj0=";
|
||||
})
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [ networkx numpy ];
|
||||
|
||||
pythonImportsCheck = [ "community" ];
|
||||
|
||||
checkInputs = [ pandas scipy ];
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://github.com/taynaud/python-louvain";
|
||||
description = "Louvain Community Detection";
|
||||
|
Loading…
Reference in New Issue
Block a user