1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 hatchling, 6 numpy, 7 scipy, 8 hypothesis, 9 pytestCheckHook, 10}: 11 12buildPythonPackage 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}