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

35 lines
597 B
Nix
Raw Normal View History

2019-04-15 22:11:07 +01:00
{ lib
, buildPythonPackage
, fetchPypi
, pytools
, numpy
, pytest
}:
buildPythonPackage rec {
pname = "cgen";
2020-06-06 07:47:00 +01:00
version = "2020.1";
2019-04-15 22:11:07 +01:00
src = fetchPypi {
inherit pname version;
2020-06-06 07:47:00 +01:00
sha256 = "4ec99d0c832d9f95f5e51dd18a629ad50df0b5464ce557ef42c6e0cd9478bfcf";
2019-04-15 22:11:07 +01: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 22:11:07 +01:00
license = licenses.mit;
maintainers = [ maintainers.costrouc ];
};
}