Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.0 kB · 51 lines
Nix
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152{ lib, buildPythonPackage, ddt, fetchFromGitHub, igraph, igraph-c, libleidenalg, pythonOlder, setuptools-scm, unittestCheckHook,}:
buildPythonPackage rec { pname = "leidenalg"; version = "0.10.2"; pyproject = true;
disabled = pythonOlder "3.7";
src = fetchFromGitHub { owner = "vtraag"; repo = "leidenalg"; tag = version; hash = "sha256-oaTV+BIB/YQBWKrVXuiIEMH/1MxPxeHhjUzbmxt6hlw="; };
nativeBuildInputs = [ setuptools-scm ];
buildInputs = [ igraph-c libleidenalg ];
propagatedBuildInputs = [ igraph ];
checkInputs = [ ddt unittestCheckHook ];
pythonImportsCheck = [ "leidenalg" ];
meta = with lib; { changelog = "https://github.com/vtraag/leidenalg/blob/${version}/CHANGELOG"; description = "Implementation of the Leiden algorithm for various quality functions to be used with igraph in Python"; homepage = "https://github.com/vtraag/leidenalg"; license = licenses.gpl3Only; maintainers = with maintainers; [ jboy ]; };}