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