1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5 networkx,
6 numpy,
7 pydot,
8 pytestCheckHook,
9 pythonOlder,
10 setuptools,
11 wheel,
12}:
13
14buildPythonPackage rec {
15 pname = "pyformlang";
16 version = "1.0.11";
17 pyproject = true;
18
19 disabled = pythonOlder "3.7";
20
21 src = fetchPypi {
22 inherit pname version;
23 hash = "sha256-4pLsi5z6ZMJrWS+vm3z8csT0sOsNUz8EWkYGHnXFzpk=";
24 };
25
26 build-system = [
27 setuptools
28 wheel
29 ];
30
31 dependencies = [
32 networkx
33 numpy
34 pydot
35 ];
36
37 nativeCheckInputs = [ pytestCheckHook ];
38
39 pythonImportsCheck = [ "pyformlang" ];
40
41 meta = with lib; {
42 description = "Framework for formal grammars";
43 homepage = "https://github.com/Aunsiels/pyformlang";
44 license = licenses.mit;
45 maintainers = with maintainers; [ natsukium ];
46 };
47}