1{ lib
2, buildPythonPackage
3, fetchPypi
4, pytools
5, numpy
6, pytest
7}:
8
9buildPythonPackage rec {
10 pname = "cgen";
11 version = "2017.1";
12
13 src = fetchPypi {
14 inherit pname version;
15 sha256 = "a04525d51ee975d37d590d6d82bf80a46e77f75187cccfd2248a89616a778795";
16 };
17
18 checkInputs = [ pytest ];
19 propagatedBuildInputs = [
20 pytools
21 numpy
22 ];
23
24 checkPhase = ''
25 pytest
26 '';
27
28 meta = with lib; {
29 description = "C/C++ source generation from an AST";
30 homepage = https://github.com/inducer/cgen;
31 license = licenses.mit;
32 maintainers = [ maintainers.costrouc ];
33 };
34}