Files
nixpkgs/pkgs/development/python-modules/altgraph/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

41 lines
1.2 KiB
Nix

{
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 ];
};
}