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