Commit 7a919198 authored by Ben Darwin's avatar Ben Darwin
Browse files

python312Packages.open-hypergraphs: init at 0.1.2

parent b81db36b
Loading
Loading
Loading
Loading
+54 −0
Original line number Diff line number Diff line
{
  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 ];
  };
}
+2 −0
Original line number Diff line number Diff line
@@ -9733,6 +9733,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 { };