python311Packages.canals: 0.2.2 -> 0.6.0
Diff: https://github.com/deepset-ai/canals/compare/refs/tags/v0.2.2...v0.6.0 Changelog: https://github.com/deepset-ai/canals/releases/tag/v0.6.0
This commit is contained in:
parent
94d494b2f6
commit
6422a7b1bb
|
@ -1,44 +1,31 @@
|
||||||
{ lib
|
{ lib
|
||||||
, buildPythonPackage
|
, buildPythonPackage
|
||||||
, pythonOlder
|
|
||||||
, pythonAtLeast
|
|
||||||
, fetchFromGitHub
|
, fetchFromGitHub
|
||||||
# native build inputs
|
|
||||||
, hatchling
|
, hatchling
|
||||||
# build input
|
|
||||||
, networkx
|
|
||||||
# check inputs
|
|
||||||
, pytestCheckHook
|
|
||||||
# optional dependencies
|
|
||||||
, pygraphviz
|
|
||||||
, requests
|
|
||||||
, mkdocs-material
|
, mkdocs-material
|
||||||
, mkdocs-mermaid2-plugin
|
, mkdocs-mermaid2-plugin
|
||||||
, mkdocstrings
|
, mkdocstrings
|
||||||
|
, networkx
|
||||||
|
, pygraphviz
|
||||||
|
, pytestCheckHook
|
||||||
|
, pythonOlder
|
||||||
|
, requests
|
||||||
}:
|
}:
|
||||||
let
|
|
||||||
|
buildPythonPackage rec {
|
||||||
pname = "canals";
|
pname = "canals";
|
||||||
version = "0.2.2";
|
version = "0.6.0";
|
||||||
optional-dependencies = {
|
|
||||||
graphviz = [ pygraphviz ];
|
|
||||||
mermaid = [ requests ];
|
|
||||||
docs = [ mkdocs-material mkdocs-mermaid2-plugin mkdocstrings ];
|
|
||||||
};
|
|
||||||
in
|
|
||||||
buildPythonPackage {
|
|
||||||
inherit version pname;
|
|
||||||
format = "pyproject";
|
format = "pyproject";
|
||||||
|
|
||||||
# Pypi source package doesn't contain tests
|
disabled = pythonOlder "3.8";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "deepset-ai";
|
owner = "deepset-ai";
|
||||||
repo = pname;
|
repo = pname;
|
||||||
rev = "v${version}";
|
rev = "refs/tags/v${version}";
|
||||||
hash = "sha256-dF0bkY4DFJIovaseNiOLgF8lmha+njTTTzr2/4LzZEc=";
|
hash = "sha256-s4nKPywfRn2hNhn/coWGqShv7D+MCEHblVzfweQJlnM=";
|
||||||
};
|
};
|
||||||
|
|
||||||
disabled = pythonOlder "3.8";
|
|
||||||
|
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
hatchling
|
hatchling
|
||||||
];
|
];
|
||||||
|
@ -47,18 +34,37 @@ buildPythonPackage {
|
||||||
networkx
|
networkx
|
||||||
];
|
];
|
||||||
|
|
||||||
passthru = { inherit optional-dependencies; };
|
passthru.optional-dependencies = {
|
||||||
|
graphviz = [
|
||||||
|
pygraphviz
|
||||||
|
];
|
||||||
|
mermaid = [
|
||||||
|
requests
|
||||||
|
];
|
||||||
|
docs = [
|
||||||
|
mkdocs-material
|
||||||
|
mkdocs-mermaid2-plugin
|
||||||
|
mkdocstrings
|
||||||
|
];
|
||||||
|
};
|
||||||
|
|
||||||
nativeCheckInputs = [
|
nativeCheckInputs = [
|
||||||
pytestCheckHook
|
pytestCheckHook
|
||||||
] ++ optional-dependencies.mermaid;
|
] ++ lib.flatten (builtins.attrValues passthru.optional-dependencies);
|
||||||
|
|
||||||
disabledTestPaths = [
|
disabledTestPaths = [
|
||||||
# requires internet connection to mermaid.ink
|
# Test requires internet connection to mermaid.ink
|
||||||
"test/pipelines/integration"
|
"test/pipelines/integration"
|
||||||
];
|
];
|
||||||
|
|
||||||
pythonImportsCheck = [ "canals" ];
|
disabledTests = [
|
||||||
|
# Path issue
|
||||||
|
"test_draw_pygraphviz"
|
||||||
|
];
|
||||||
|
|
||||||
|
pythonImportsCheck = [
|
||||||
|
"canals"
|
||||||
|
];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "A component orchestration engine";
|
description = "A component orchestration engine";
|
||||||
|
|
Loading…
Reference in a new issue