567e8dfd8e
This commit was created by a combination of scripts and tools: - an ast-grep script to prefix things in meta with `lib.`, - a modified nixf-diagnose / nixf combination to remove unused `with lib;`, and - regular nixfmt. Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
45 lines
861 B
Nix
45 lines
861 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchPypi,
|
|
cython,
|
|
pexpect,
|
|
python,
|
|
pythonOlder,
|
|
setuptools,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "cpyparsing";
|
|
version = "2.4.7.2.4.1";
|
|
pyproject = true;
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-2RfwGnSz/GFPk565n8MooIybHeWAlWYMDylZd0S/HTA=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
cython
|
|
setuptools
|
|
];
|
|
|
|
nativeCheckInputs = [ pexpect ];
|
|
|
|
checkPhase = ''
|
|
${python.interpreter} tests/cPyparsing_test.py
|
|
'';
|
|
|
|
pythonImportsCheck = [ "cPyparsing" ];
|
|
|
|
meta = {
|
|
description = "Cython PyParsing implementation";
|
|
homepage = "https://github.com/evhub/cpyparsing";
|
|
changelog = "https://github.com/evhub/cpyparsing/releases/tag/v${version}";
|
|
license = lib.licenses.asl20;
|
|
maintainers = with lib.maintainers; [ fabianhjr ];
|
|
};
|
|
}
|