1{ lib
2, buildPythonPackage
3, fetchPypi
4, pytools
5, numpy
6, pytest
7}:
8
9buildPythonPackage rec {
10 pname = "cgen";
11 version = "2020.1";
12
13 src = fetchPypi {
14 inherit pname version;
15 sha256 = "4ec99d0c832d9f95f5e51dd18a629ad50df0b5464ce557ef42c6e0cd9478bfcf";
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}