1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5 setuptools,
6}:
7
8buildPythonPackage rec {
9 pname = "altgraph";
10 version = "0.17.4";
11
12 format = "setuptools";
13
14 src = fetchPypi {
15 inherit pname version;
16 hash = "sha256-G1r7uY9sTcrbLirmq5+plLu4wddfT6ltNA+UN65FRAY=";
17 };
18
19 dependencies = [
20 # setuptools in dependencies is intentional
21 # https://github.com/ronaldoussoren/altgraph/issues/21
22 setuptools
23 ];
24
25 pythonImportsCheck = [ "altgraph" ];
26
27 meta = with lib; {
28 changelog = "https://github.com/ronaldoussoren/altgraph/tags${version}";
29 description = "Fork of graphlib: a graph (network) package for constructing graphs";
30 longDescription = ''
31 altgraph is a fork of graphlib: a graph (network) package for constructing graphs,
32 BFS and DFS traversals, topological sort, shortest paths, etc. with graphviz output.
33 altgraph includes some additional usage of Python 2.6+ features and enhancements related to modulegraph and macholib.
34 '';
35 homepage = "https://altgraph.readthedocs.io/";
36 downloadPage = "https://pypi.org/project/altgraph/";
37 license = licenses.mit;
38 maintainers = with maintainers; [ septem9er ];
39 };
40}