c7e6337bd0
GitOrigin-RevId: 08e4dc3a907a6dfec8bb3bbf1540d8abbffea22b
37 lines
810 B
Nix
37 lines
810 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, pythonOlder
|
|
, pytestCheckHook
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "parsy";
|
|
version = "2.1";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
repo = "parsy";
|
|
owner = "python-parsy";
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-/Bu3xZUpXI4WiYJKKWTJTdSFq8pwC1PFDw0Kr8s3Fe8=";
|
|
};
|
|
|
|
nativeCheckInputs = [
|
|
pytestCheckHook
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"parsy"
|
|
];
|
|
|
|
meta = with lib; {
|
|
homepage = "https://github.com/python-parsy/parsy";
|
|
description = "Easy-to-use parser combinators, for parsing in pure Python";
|
|
changelog = "https://github.com/python-parsy/parsy/blob/v${version}/docs/history.rst";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ milibopp ];
|
|
};
|
|
}
|