python310Packages.canals: init at 0.2.2
This commit is contained in:
parent
651beb2a23
commit
12418710ec
2 changed files with 72 additions and 0 deletions
70
pkgs/development/python-modules/canals/default.nix
Normal file
70
pkgs/development/python-modules/canals/default.nix
Normal file
|
@ -0,0 +1,70 @@
|
|||
{ lib
|
||||
, buildPythonPackage
|
||||
, pythonOlder
|
||||
, pythonAtLeast
|
||||
, fetchFromGitHub
|
||||
# native build inputs
|
||||
, hatchling
|
||||
# build input
|
||||
, networkx
|
||||
# check inputs
|
||||
, pytestCheckHook
|
||||
# optional dependencies
|
||||
, pygraphviz
|
||||
, requests
|
||||
, mkdocs-material
|
||||
, mkdocs-mermaid2-plugin
|
||||
, mkdocstrings
|
||||
}:
|
||||
let
|
||||
pname = "canals";
|
||||
version = "0.2.2";
|
||||
optional-dependencies = {
|
||||
graphviz = [ pygraphviz ];
|
||||
mermaid = [ requests ];
|
||||
docs = [ mkdocs-material mkdocs-mermaid2-plugin mkdocstrings ];
|
||||
};
|
||||
in
|
||||
buildPythonPackage {
|
||||
inherit version pname;
|
||||
format = "pyproject";
|
||||
|
||||
# Pypi source package doesn't contain tests
|
||||
src = fetchFromGitHub {
|
||||
owner = "deepset-ai";
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
hash = "sha256-dF0bkY4DFJIovaseNiOLgF8lmha+njTTTzr2/4LzZEc=";
|
||||
};
|
||||
|
||||
disabled = pythonOlder "3.8";
|
||||
|
||||
nativeBuildInputs = [
|
||||
hatchling
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
networkx
|
||||
];
|
||||
|
||||
passthru = { inherit optional-dependencies; };
|
||||
|
||||
nativeCheckInputs = [
|
||||
pytestCheckHook
|
||||
] ++ optional-dependencies.mermaid;
|
||||
|
||||
disabledTestPaths = [
|
||||
# requires internet connection to mermaid.ink
|
||||
"test/pipelines/integration"
|
||||
];
|
||||
|
||||
pythonImportsCheck = [ "canals" ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "A component orchestration engine";
|
||||
homepage = "https://github.com/deepset-ai/canals";
|
||||
changelog = "https://github.com/deepset-ai/canals/releases/tag/v${version}";
|
||||
license = licenses.asl20;
|
||||
maintainers = with maintainers; [ happysalada ];
|
||||
};
|
||||
}
|
|
@ -1655,6 +1655,8 @@ self: super: with self; {
|
|||
|
||||
can = callPackage ../development/python-modules/can { };
|
||||
|
||||
canals = callPackage ../development/python-modules/canals { };
|
||||
|
||||
canmatrix = callPackage ../development/python-modules/canmatrix { };
|
||||
|
||||
canonicaljson = callPackage ../development/python-modules/canonicaljson { };
|
||||
|
|
Loading…
Reference in a new issue