about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/frilouz/default.nix
blob: 320912c7dd17b03e2ef090695d72c2c76d05e195 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
{ lib
, astunparse
, buildPythonPackage
, fetchFromGitHub
, isPy3k
}:

buildPythonPackage rec {
  pname = "frilouz";
  version = "0.0.2";
  disabled = !isPy3k;

  src = fetchFromGitHub {
    owner = "QuantStack";
    repo = "frilouz";
    rev = version;
    sha256 = "0w2qzi4zb10r9iw64151ay01vf0yzyhh0bsjkx1apxp8fs15cdiw";
  };

  checkInputs = [ astunparse ];

  preCheck = "cd test";

  checkPhase = ''
    runHook preCheck
    python -m unittest
    runHook postCheck
  '';

  pythonImportsCheck = [ "frilouz" ];

  meta = with lib; {
    homepage = "https://github.com/QuantStack/frilouz";
    description = "Python AST parser adapter with partial error recovery";
    license = licenses.bsd3;
    maintainers = with maintainers; [ cpcloud ];
  };
}