2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv, buildPythonPackage, fetchPypi, python }:
|
2018-03-31 20:16:10 +01:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pycparser";
|
2020-06-06 07:47:24 +01:00
|
|
|
version = "2.20";
|
2018-03-31 20:16:10 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-06-06 07:47:24 +01:00
|
|
|
sha256 = "2d475327684562c3a96cc71adf7dc8c4f0565175cf86b6d7a404ff4c771f15f0";
|
2018-03-31 20:16:10 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
${python.interpreter} -m unittest discover -s tests
|
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2018-03-31 20:16:10 +01:00
|
|
|
description = "C parser in Python";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/eliben/pycparser";
|
2018-03-31 20:16:10 +01:00
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = with maintainers; [ domenkozar ];
|
|
|
|
};
|
|
|
|
}
|