python312Packages.open-hypergraphs: init at 0.1.2 (#380798)

This commit is contained in:
Robert Schütz
2025-02-12 20:50:51 -08:00
committed by GitHub
2 changed files with 56 additions and 0 deletions

View File

@@ -0,0 +1,54 @@
{
lib,
buildPythonPackage,
fetchFromGitHub,
hatchling,
numpy,
scipy,
hypothesis,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "open-hypergraphs";
version = "0.1.2";
pyproject = true;
src = fetchFromGitHub {
owner = "statusfailed";
repo = "open-hypergraphs";
tag = "pypi-${version}";
hash = "sha256-ifcQXZDnOvo2XL7WYVFLv2iHWhImUSp3jqAPPYySNjU=";
};
build-system = [
hatchling
];
dependencies = [
numpy
scipy
];
pythonRelaxDeps = [
"numpy"
"scipy"
];
nativeCheckInputs = [
pytestCheckHook
hypothesis
];
pythonImportsCheck = [
"open_hypergraphs"
];
meta = {
description = "Implementation of open hypergraphs for string diagrams";
homepage = "https://github.com/statusfailed/open-hypergraphs";
changelog = "https://github.com/statusfailed/open-hypergraphs/blob/${src.rev}/CHANGELOG.md";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ bcdarwin ];
};
}

View File

@@ -9745,6 +9745,8 @@ self: super: with self; {
open-garage = callPackage ../development/python-modules/open-garage { };
open-hypergraphs = callPackage ../development/python-modules/open-hypergraphs { };
open-interpreter = callPackage ../development/python-modules/open-interpreter { };
open-meteo = callPackage ../development/python-modules/open-meteo { };