lol
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

python310Packages.cpyparsing: disable on older Python releases

- add pythonImportsCheck

authored by

Fabian Affolter and committed by
GitHub
073a01cc fedb67d1

+20 -4
+20 -4
pkgs/development/python-modules/cpyparsing/default.nix
··· 1 - { lib, buildPythonPackage, fetchFromGitHub, cython, pexpect, python }: 1 + { lib 2 + , buildPythonPackage 3 + , fetchFromGitHub 4 + , cython 5 + , pexpect 6 + , python 7 + , pythonOlder 8 + }: 2 9 3 10 buildPythonPackage rec { 4 11 pname = "cpyparsing"; 5 12 version = "2.4.7.1.2.0"; 13 + format = "setuptools"; 14 + 15 + disabled = pythonOlder "3.7"; 6 16 7 17 src = fetchFromGitHub { 8 18 owner = "evhub"; 9 19 repo = pname; 10 20 rev = "refs/tags/v${version}"; 11 - sha256 = "sha256-cb0Lx+S9WnPa9veHJaYEU7pFCtB6pG/GKf4HK/UbmtU="; 21 + hash = "sha256-cb0Lx+S9WnPa9veHJaYEU7pFCtB6pG/GKf4HK/UbmtU="; 12 22 }; 13 23 14 24 nativeBuildInputs = [ cython ]; 15 25 16 26 checkInputs = [ pexpect ]; 17 27 18 - checkPhase = "${python.interpreter} tests/cPyparsing_test.py"; 28 + checkPhase = '' 29 + ${python.interpreter} tests/cPyparsing_test.py 30 + ''; 31 + 32 + pythonImportsCheck = [ 33 + "cPyparsing" 34 + ]; 19 35 20 36 meta = with lib; { 37 + description = "Cython PyParsing implementation"; 21 38 homepage = "https://github.com/evhub/cpyparsing"; 22 - description = "Cython PyParsing implementation"; 23 39 license = licenses.asl20; 24 40 maintainers = with maintainers; [ fabianhjr ]; 25 41 };