mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-07-06 17:13:24 -05:00
python3Packages.pygraphviz: 1.14 -> 1.14-unstable-2026-05-07
Diff: https://github.com/pygraphviz/pygraphviz/compare/pygraphviz-1.14...6b9efcd1a76a97836de79d1380c0d003c6f834e7
This commit is contained in:
parent
f382bf21ae
commit
0613f17f02
1 changed files with 25 additions and 5 deletions
|
|
@ -2,24 +2,26 @@
|
|||
lib,
|
||||
buildPythonPackage,
|
||||
fetchFromGitHub,
|
||||
fetchpatch,
|
||||
replaceVars,
|
||||
graphviz,
|
||||
coreutils,
|
||||
pkg-config,
|
||||
setuptools,
|
||||
swig,
|
||||
pytest,
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
buildPythonPackage {
|
||||
pname = "pygraphviz";
|
||||
version = "1.14";
|
||||
version = "1.14-unstable-2026-05-07";
|
||||
pyproject = true;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "pygraphviz";
|
||||
repo = "pygraphviz";
|
||||
tag = "pygraphviz-${version}";
|
||||
hash = "sha256-RyUmT2djj2GnVG82xO9HULMAJZb2LYMUGDRvCwaYBg8=";
|
||||
rev = "6b9efcd1a76a97836de79d1380c0d003c6f834e7";
|
||||
hash = "sha256-ghtnwOevSnecshMBoASCZircgOsPF7+l+Cer+J+yEqM=";
|
||||
};
|
||||
|
||||
patches = [
|
||||
|
|
@ -32,9 +34,27 @@ buildPythonPackage rec {
|
|||
})
|
||||
];
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace pyproject.toml \
|
||||
--replace-fail ', "swig>4.1.0"' ""
|
||||
|
||||
# https://github.com/pygraphviz/pygraphviz/pull/573
|
||||
substituteInPlace pygraphviz/graphviz.i \
|
||||
--replace-fail '%cstring_output_allocate_size(char **result, unsigned int* size, free(*$1));' \
|
||||
'%cstring_output_allocate_size(char **result, size_t* size, free(*$1));' \
|
||||
--replace-fail 'int gvRenderData(GVC_t *gvc, Agraph_t* g, char *format, char **result, unsigned int *size);' \
|
||||
'int gvRenderData(GVC_t *gvc, Agraph_t* g, char *format, char **result, size_t *size);'
|
||||
'';
|
||||
|
||||
env.GRAPHVIZ_PREFIX = graphviz;
|
||||
|
||||
build-system = [
|
||||
setuptools
|
||||
];
|
||||
|
||||
nativeBuildInputs = [
|
||||
pkg-config
|
||||
setuptools
|
||||
swig
|
||||
];
|
||||
|
||||
buildInputs = [ graphviz ];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue