nixpkgs/pkgs/development/python-modules/cpyparsing/default.nix
Martin Weinelt 528354e66c
python312Packages.cython: 0.29.36 -> 3.0.9
Folds the cython_3 attribute into the primary cython attribute and
migrates all packages from the versioned attribute.

The old version will be provided through the cython_0 attribute in an
effort to phase it out.
2024-03-27 18:35:05 +01:00

50 lines
931 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, cython
, pexpect
, python
, pythonOlder
, setuptools
}:
buildPythonPackage rec {
pname = "cpyparsing";
version = "2.4.7.2.3.2";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "evhub";
repo = "cpyparsing";
rev = "refs/tags/v${version}";
hash = "sha256-vnzZdJ7pZz1QxlTqw5UKjxB4GVcXuCfKWX4lu3ORWas=";
};
nativeBuildInputs = [
cython
setuptools
];
nativeCheckInputs = [
pexpect
];
checkPhase = ''
${python.interpreter} tests/cPyparsing_test.py
'';
pythonImportsCheck = [
"cPyparsing"
];
meta = with lib; {
description = "Cython PyParsing implementation";
homepage = "https://github.com/evhub/cpyparsing";
changelog = "https://github.com/evhub/cpyparsing/releases/tag/v${version}";
license = licenses.asl20;
maintainers = with maintainers; [ fabianhjr ];
};
}