nixpkgs/pkgs/development/python-modules/pyformlang/default.nix
2024-03-28 23:50:21 +01:00

51 lines
787 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, networkx
, numpy
, pydot
, pytestCheckHook
, pythonOlder
, setuptools
, wheel
}:
buildPythonPackage rec {
pname = "pyformlang";
version = "1.0.9";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
hash = "sha256-oCwYM4yQ1KYZpC7vVpeHSIDH2Q930JAuTDq9mds9zoc=";
};
build-system = [
setuptools
wheel
];
dependencies = [
networkx
numpy
pydot
];
nativeCheckInputs = [
pytestCheckHook
];
pythonImportsCheck = [
"pyformlang"
];
meta = with lib; {
description = "Framework for formal grammars";
homepage = "https://github.com/Aunsiels/pyformlang";
license = licenses.mit;
maintainers = with maintainers; [ natsukium ];
};
}