94427deb9d
GitOrigin-RevId: f91ee3065de91a3531329a674a45ddcb3467a650
44 lines
796 B
Nix
44 lines
796 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, poetry-core
|
|
, python
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
, six
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "funcparserlib";
|
|
version = "1.0.1";
|
|
format = "pyproject";
|
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "vlasovskikh";
|
|
repo = pname;
|
|
rev = version;
|
|
hash = "sha256-LE9ItCaEzEGeahpM3M3sSnDBXEr6uX5ogEkO5x2Jgzc=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
poetry-core
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
pytestCheckHook
|
|
six
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"funcparserlib"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Recursive descent parsing library based on functional combinators";
|
|
homepage = "https://github.com/vlasovskikh/funcparserlib";
|
|
license = licenses.mit;
|
|
platforms = platforms.unix;
|
|
};
|
|
}
|