diff options
Diffstat (limited to 'pkgs/development/python-modules/pyformlang/default.nix')
-rw-r--r-- | pkgs/development/python-modules/pyformlang/default.nix | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/pyformlang/default.nix b/pkgs/development/python-modules/pyformlang/default.nix new file mode 100644 index 000000000000..d4a055d459cd --- /dev/null +++ b/pkgs/development/python-modules/pyformlang/default.nix @@ -0,0 +1,45 @@ +{ lib +, buildPythonPackage +, fetchPypi +, setuptools +, wheel +, networkx +, numpy +, pydot +, pytestCheckHook +}: + +buildPythonPackage rec { + pname = "pyformlang"; + version = "1.0.4"; + pyproject = true; + + src = fetchPypi { + inherit pname version; + hash = "sha256-ysX6c8q26bcQyq6GgKBKxTdp00j+4ypb3mgM2cqCmBs="; + }; + + nativeBuildInputs = [ + setuptools + wheel + ]; + + propagatedBuildInputs = [ + networkx + numpy + pydot + ]; + + nativeCheckInputs = [ + pytestCheckHook + ]; + + pythonImportsCheck = [ "pyformlang" ]; + + meta = with lib; { + description = "A python framework for formal grammars"; + homepage = "https://pypi.org/project/pyformlang/"; + license = licenses.mit; + maintainers = with maintainers; [ natsukium ]; + }; +} |