nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 buildPythonPackage,
4 ddt,
5 fetchFromGitHub,
6 igraph,
7 igraph-c,
8 libleidenalg,
9 setuptools-scm,
10 unittestCheckHook,
11}:
12
13buildPythonPackage rec {
14 pname = "leidenalg";
15 version = "0.11.0";
16 pyproject = true;
17
18 src = fetchFromGitHub {
19 owner = "vtraag";
20 repo = "leidenalg";
21 tag = version;
22 hash = "sha256-u4xW1gsWDpbsFVLlOIiPZtpw9t4iFBC7fzwn04flev8=";
23 };
24
25 build-system = [ setuptools-scm ];
26
27 buildInputs = [
28 igraph-c
29 libleidenalg
30 ];
31
32 propagatedBuildInputs = [ igraph ];
33
34 nativeCheckInputs = [
35 ddt
36 unittestCheckHook
37 ];
38
39 pythonImportsCheck = [ "leidenalg" ];
40
41 meta = {
42 changelog = "https://github.com/vtraag/leidenalg/blob/${src.tag}/CHANGELOG";
43 description = "Implementation of the Leiden algorithm for various quality functions to be used with igraph in Python";
44 homepage = "https://github.com/vtraag/leidenalg";
45 license = lib.licenses.gpl3Plus;
46 maintainers = with lib.maintainers; [ jboy ];
47 };
48}