summary refs log tree commit diff
path: root/pkgs/development/python-modules/cgen/default.nix
blob: e0317249fe9f85fc24e86f375d13ced53ea7b29c (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
{ lib
, buildPythonPackage
, fetchPypi
, pytools
, numpy
, pytest
}:

buildPythonPackage rec {
  pname = "cgen";
  version = "2017.1";

  src = fetchPypi {
    inherit pname version;
    sha256 = "a04525d51ee975d37d590d6d82bf80a46e77f75187cccfd2248a89616a778795";
  };

  checkInputs = [ pytest ];
  propagatedBuildInputs = [
    pytools
    numpy
  ];

  checkPhase = ''
    pytest
  '';

  meta = with lib; {
    description = "C/C++ source generation from an AST";
    homepage = https://github.com/inducer/cgen;
    license = licenses.mit;
    maintainers = [ maintainers.costrouc ];
  };
}