aboutsummaryrefslogtreecommitdiff
path: root/infra/libkookie/nixpkgs/pkgs/development/python-modules/cpyparsing/default.nix
blob: 66f173106e495f4338311ea8b1c1db769a1cba8d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
{ lib, buildPythonPackage, fetchFromGitHub, cython, python }:

buildPythonPackage rec {
  pname = "cpyparsing";
  version = "2.4.5.0.1.1";

  src = fetchFromGitHub {
    owner = "evhub";
    repo = pname;
    rev = "aa8ee45daec5c55328446bad7202ab8f799ab0ce"; # No tags on repo
    sha256 = "1mxa5q41cb0k4lkibs0d4lzh1w6kmhhdrsm0w0r1m3s80m05ffmw";
  };

  nativeBuildInputs = [ cython ];

  checkPhase = "${python.interpreter} tests/cPyparsing_test.py";

  meta = with lib; {
    homepage = "https://github.com/evhub/cpyparsing";
    description = "Cython PyParsing implementation";
    license = licenses.asl20;
    maintainers = with maintainers; [ fabianhjr ];
  };
}