Skip to content

Commit 2ee1540

Browse files
authored
python312Packages.open-hypergraphs: init at 0.1.2 (#380798)
2 parents a52a8d7 + 7a91919 commit 2ee1540

File tree

2 files changed

+56
-0
lines changed

2 files changed

+56
-0
lines changed
Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
{
2+
lib,
3+
buildPythonPackage,
4+
fetchFromGitHub,
5+
hatchling,
6+
numpy,
7+
scipy,
8+
hypothesis,
9+
pytestCheckHook,
10+
}:
11+
12+
buildPythonPackage rec {
13+
pname = "open-hypergraphs";
14+
version = "0.1.2";
15+
pyproject = true;
16+
17+
src = fetchFromGitHub {
18+
owner = "statusfailed";
19+
repo = "open-hypergraphs";
20+
tag = "pypi-${version}";
21+
hash = "sha256-ifcQXZDnOvo2XL7WYVFLv2iHWhImUSp3jqAPPYySNjU=";
22+
};
23+
24+
build-system = [
25+
hatchling
26+
];
27+
28+
dependencies = [
29+
numpy
30+
scipy
31+
];
32+
33+
pythonRelaxDeps = [
34+
"numpy"
35+
"scipy"
36+
];
37+
38+
nativeCheckInputs = [
39+
pytestCheckHook
40+
hypothesis
41+
];
42+
43+
pythonImportsCheck = [
44+
"open_hypergraphs"
45+
];
46+
47+
meta = {
48+
description = "Implementation of open hypergraphs for string diagrams";
49+
homepage = "https://github.com/statusfailed/open-hypergraphs";
50+
changelog = "https://github.com/statusfailed/open-hypergraphs/blob/${src.rev}/CHANGELOG.md";
51+
license = lib.licenses.mit;
52+
maintainers = with lib.maintainers; [ bcdarwin ];
53+
};
54+
}

pkgs/top-level/python-packages.nix

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9745,6 +9745,8 @@ self: super: with self; {
97459745

97469746
open-garage = callPackage ../development/python-modules/open-garage { };
97479747

9748+
open-hypergraphs = callPackage ../development/python-modules/open-hypergraphs { };
9749+
97489750
open-interpreter = callPackage ../development/python-modules/open-interpreter { };
97499751

97509752
open-meteo = callPackage ../development/python-modules/open-meteo { };

0 commit comments

Comments
 (0)