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

23 lines
536 B
Nix
Raw Normal View History

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