Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / python-louvain / default.nix
blobb9f2647559910a2148eab2196ccbb867475d6d2e
1 { lib
2 , fetchPypi
3 , buildPythonPackage
4 , fetchpatch
5 , networkx
6 , pandas
7 , scipy
8 , numpy }:
10 buildPythonPackage rec {
11   pname = "python-louvain";
12   version = "0.16";
13   format = "setuptools";
15   src = fetchPypi {
16     inherit pname version;
17     hash = "sha256-t7ot9QAv0o0+54mklTK6rRH+ZI5PIRfPB5jnUgodpWs=";
18   };
20   patches = [
21     # Fix test_karate
22     (fetchpatch {
23       name = "fix-karate-test-networkx-2.7.patch";
24       url = "https://github.com/taynaud/python-louvain/pull/95/commits/c95d767e72f580cb15319fe08d72d87c9976640b.patch";
25       hash = "sha256-9oJ9YvKl2sI8oGhfyauNS+HT4kXsDt0L8S2owluWdj0=";
26     })
27   ];
29   propagatedBuildInputs = [ networkx numpy ];
31   pythonImportsCheck = [ "community" ];
33   nativeCheckInputs = [ pandas scipy ];
35   meta = with lib; {
36     homepage = "https://github.com/taynaud/python-louvain";
37     description = "Louvain Community Detection";
38     mainProgram = "community";
39     license = licenses.bsd3;
40     maintainers = with maintainers; [ ];
41   };