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

35 lines
583 B
Nix
Raw Normal View History

2019-04-15 23:11:07 +02:00
{ lib
, buildPythonPackage
, fetchPypi
, pytools
, numpy
, pytest
}:
buildPythonPackage rec {
pname = "cgen";
version = "2019.1";
2019-04-15 23:11:07 +02:00
src = fetchPypi {
inherit pname version;
sha256 = "04gxzfjy2f9qsg3scg1sx4q4rhw5p036dyqngxyfsai0wvj5ya6m";
2019-04-15 23:11:07 +02: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;
license = licenses.mit;
maintainers = [ maintainers.costrouc ];
};
}