2021-01-25 08:26:54 +00:00
|
|
|
{ lib
|
2018-10-15 19:58:13 +00:00
|
|
|
, buildPythonPackage
|
2021-12-26 13:50:46 +00:00
|
|
|
, fetchFromGitHub
|
|
|
|
, poetry-core
|
2018-10-15 19:58:13 +00:00
|
|
|
, python
|
2021-12-26 13:50:46 +00:00
|
|
|
, pytestCheckHook
|
|
|
|
, pythonOlder
|
2022-04-03 02:05:20 +00:00
|
|
|
, six
|
2018-10-15 19:58:13 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "funcparserlib";
|
2022-10-05 08:19:05 +00:00
|
|
|
version = "1.0.0";
|
2021-12-26 13:50:46 +00:00
|
|
|
format = "pyproject";
|
2018-10-15 19:58:13 +00:00
|
|
|
|
2021-12-26 13:50:46 +00:00
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "vlasovskikh";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2022-10-05 08:19:05 +00:00
|
|
|
sha256 = "sha256-moWaOzyF/yhDQCLEp7bc0j8wNv7FM7cvvpCwon3j+gI=";
|
2018-10-15 19:58:13 +00:00
|
|
|
};
|
|
|
|
|
2021-12-26 13:50:46 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
poetry-core
|
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
pytestCheckHook
|
2022-04-03 02:05:20 +00:00
|
|
|
six
|
2021-12-26 13:50:46 +00:00
|
|
|
];
|
2018-10-15 19:58:13 +00:00
|
|
|
|
2021-12-26 13:50:46 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"funcparserlib"
|
|
|
|
];
|
2018-10-15 19:58:13 +00:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2018-10-15 19:58:13 +00:00
|
|
|
description = "Recursive descent parsing library based on functional combinators";
|
2019-12-08 16:50:31 +00:00
|
|
|
homepage = "https://github.com/vlasovskikh/funcparserlib";
|
2018-10-15 19:58:13 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|