forked from NixOS/nixpkgs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-authored-by: OTABI Tomoya <[email protected]>
- Loading branch information
1 parent
d304cba
commit b8393db
Showing
2 changed files
with
58 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
{ | ||
lib, | ||
stdenv, | ||
buildPythonPackage, | ||
fetchPypi, | ||
|
||
# Runtime dependencies | ||
networkx, | ||
matplotlib, | ||
numpy, | ||
tqdm, | ||
scipy, | ||
|
||
# Build, dev and test dependencies | ||
setuptools-scm, | ||
pytestCheckHook, | ||
pytest-check, | ||
pytest-mock, | ||
}: | ||
|
||
buildPythonPackage rec { | ||
pname = "hebg"; | ||
version = "0.2.4"; | ||
pyproject = true; | ||
|
||
src = fetchPypi { | ||
inherit pname version; | ||
hash = "sha256-11bz+FbnaEVLiXT1eujMw8lvABlzVOeROOsdVgsyfjQ="; | ||
}; | ||
|
||
build-system = [ setuptools-scm ]; | ||
|
||
dependencies = [ | ||
networkx | ||
matplotlib | ||
numpy | ||
tqdm | ||
scipy | ||
]; | ||
|
||
nativeCheckInputs = [ | ||
pytestCheckHook | ||
pytest-check | ||
pytest-mock | ||
]; | ||
env = lib.optionalAttrs stdenv.hostPlatform.isDarwin { MPLBACKEND = "Agg"; }; | ||
pythonImportsCheck = [ "hebg" ]; | ||
|
||
meta = { | ||
description = "Hierachical Explainable Behaviors using Graphs"; | ||
homepage = "https://github.com/IRLL/HEB_graphs"; | ||
changelog = "https://github.com/IRLL/HEB_graphs/releases/tag/${version}"; | ||
license = lib.licenses.gpl3Only; | ||
maintainers = with lib.maintainers; [ automathis ]; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters