Files
nixpkgs/pkgs/development/python-modules/cpyparsing/default.nix
T

42 lines
813 B
Nix

{
lib,
buildPythonPackage,
fetchPypi,
cython,
pexpect,
python,
setuptools,
}:
buildPythonPackage rec {
pname = "cpyparsing";
version = "2.4.7.2.4.3";
pyproject = true;
src = fetchPypi {
inherit pname version;
hash = "sha256-5pSZ+fhMiUIe1kLAvlyyfmcKWxtO2m0h9kQY2LrxOjg=";
};
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 ];
};
}