nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at 22.05 26 lines 661 B view raw
1{ lib, buildPythonPackage, fetchFromGitHub, cython, pexpect, python }: 2 3buildPythonPackage rec { 4 pname = "cpyparsing"; 5 version = "2.4.7.1.1.0"; 6 7 src = fetchFromGitHub { 8 owner = "evhub"; 9 repo = pname; 10 rev = "v${version}"; 11 sha256 = "1rqj89mb4dz0xk8djh506nrlqfqqdva9qgb5llrvvwjqv3vqnrj4"; 12 }; 13 14 nativeBuildInputs = [ cython ]; 15 16 checkInputs = [ pexpect ]; 17 18 checkPhase = "${python.interpreter} tests/cPyparsing_test.py"; 19 20 meta = with lib; { 21 homepage = "https://github.com/evhub/cpyparsing"; 22 description = "Cython PyParsing implementation"; 23 license = licenses.asl20; 24 maintainers = with maintainers; [ fabianhjr ]; 25 }; 26}