nixpkgs/pkgs/development/python-modules/cgen/default.nix

35 lines
585 B
Nix
Raw Normal View History

2019-04-15 21:11:07 +00:00
{ lib
, buildPythonPackage
, fetchPypi
, pytools
, numpy
, pytest
}:
buildPythonPackage rec {
pname = "cgen";
version = "2019.1";
2019-04-15 21:11:07 +00:00
src = fetchPypi {
inherit pname version;
sha256 = "04gxzfjy2f9qsg3scg1sx4q4rhw5p036dyqngxyfsai0wvj5ya6m";
2019-04-15 21:11:07 +00:00
};
checkInputs = [ pytest ];
propagatedBuildInputs = [
pytools
numpy
];
checkPhase = ''
pytest
'';
meta = with lib; {
description = "C/C++ source generation from an AST";
homepage = "https://github.com/inducer/cgen";
2019-04-15 21:11:07 +00:00
license = licenses.mit;
maintainers = [ maintainers.costrouc ];
};
}