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

buildPythonPackage rec {
  pname = "cgen";
  version = "2020.1";
  format = "setuptools";

  src = fetchPypi {
    inherit pname version;
    sha256 = "4ec99d0c832d9f95f5e51dd18a629ad50df0b5464ce557ef42c6e0cd9478bfcf";
  };

  nativeCheckInputs = [ 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 = with lib.maintainers; [ sigmanificient ];
  };
}