summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/altgraph/default.nix
blob: 153e265f86098561fa79fbcfaa8f41b796d1eca6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
{
  lib,
  buildPythonPackage,
  fetchPypi,
  setuptools,
}:

buildPythonPackage rec {
  pname = "altgraph";
  version = "0.17.5";

  format = "setuptools";

  src = fetchPypi {
    inherit pname version;
    hash = "sha256-yHs5XdEvq96cmVc6l0nWfajSnvneASXH9TZpm0qbyec=";
  };

  dependencies = [
    # setuptools in dependencies is intentional
    # https://github.com/ronaldoussoren/altgraph/issues/21
    setuptools
  ];

  pythonImportsCheck = [ "altgraph" ];

  meta = {
    changelog = "https://github.com/ronaldoussoren/altgraph/tags${version}";
    description = "Fork of graphlib: a graph (network) package for constructing graphs";
    longDescription = ''
      altgraph is a fork of graphlib: a graph (network) package for constructing graphs,
      BFS and DFS traversals, topological sort, shortest paths, etc. with graphviz output.
      altgraph includes some additional usage of Python 2.6+ features and enhancements related to modulegraph and macholib.
    '';
    homepage = "https://altgraph.readthedocs.io/";
    downloadPage = "https://pypi.org/project/altgraph/";
    license = lib.licenses.mit;
    maintainers = with lib.maintainers; [ septem9er ];
  };
}