mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-03-14 08:26:37 +01:00
There is no need to disable Python packages for Python versions that are
no longer in Nixpkgs.
This change was generated using the following script:
pattern='^\s*disabled\s*=\s*pythonOlder\s*"3\.\([0-9]\|10\)"\s*;\s*$'
for f in $(find -name '*.nix'); do
grep -q "$pattern" "$f" || continue
sed -i "/$pattern/d" "$f"
if [ $(grep -c pythonOlder "$f") == 1 ]; then
sed -i '/^\s*pythonOlder,\s*$/d' "$f"
fi
nixfmt "$f"
done
61 lines
1.1 KiB
Nix
61 lines
1.1 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
replaceVars,
|
|
graphviz,
|
|
coreutils,
|
|
pkg-config,
|
|
setuptools,
|
|
pytest,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pygraphviz";
|
|
version = "1.14";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "pygraphviz";
|
|
repo = "pygraphviz";
|
|
tag = "pygraphviz-${version}";
|
|
hash = "sha256-RyUmT2djj2GnVG82xO9HULMAJZb2LYMUGDRvCwaYBg8=";
|
|
};
|
|
|
|
patches = [
|
|
# pygraphviz depends on graphviz executables and wc being in PATH
|
|
(replaceVars ./path.patch {
|
|
path = lib.makeBinPath [
|
|
graphviz
|
|
coreutils
|
|
];
|
|
})
|
|
];
|
|
|
|
nativeBuildInputs = [
|
|
pkg-config
|
|
setuptools
|
|
];
|
|
|
|
buildInputs = [ graphviz ];
|
|
|
|
nativeCheckInputs = [ pytest ];
|
|
|
|
checkPhase = ''
|
|
runHook preCheck
|
|
pytest --pyargs pygraphviz
|
|
runHook postCheck
|
|
'';
|
|
|
|
pythonImportsCheck = [ "pygraphviz" ];
|
|
|
|
meta = {
|
|
description = "Python interface to Graphviz graph drawing package";
|
|
homepage = "https://github.com/pygraphviz/pygraphviz";
|
|
license = lib.licenses.bsd3;
|
|
maintainers = with lib.maintainers; [
|
|
matthiasbeyer
|
|
dotlambda
|
|
];
|
|
};
|
|
}
|