depot/third_party/nixpkgs/pkgs/development/python-modules/funcparserlib/default.nix
Default email 83405b6dd2 Project import generated by Copybara.
GitOrigin-RevId: ac718d02867a84b42522a0ece52d841188208f2c
2023-03-15 17:39:30 +01:00

44 lines
796 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, poetry-core
, python
, pytestCheckHook
, pythonOlder
, six
}:
buildPythonPackage rec {
pname = "funcparserlib";
version = "1.0.0";
format = "pyproject";
disabled = pythonOlder "3.6";
src = fetchFromGitHub {
owner = "vlasovskikh";
repo = pname;
rev = version;
hash = "sha256-moWaOzyF/yhDQCLEp7bc0j8wNv7FM7cvvpCwon3j+gI=";
};
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;
};
}