pythonPackages.pycparser: Move to own file

This commit is contained in:
Elis Hirwing
2018-03-31 21:16:10 +02:00
committed by Frederik Rietdijk
parent 1c69fccc81
commit 8fab23d694
2 changed files with 23 additions and 20 deletions

View File

@@ -0,0 +1,22 @@
{ stdenv, buildPythonPackage, fetchPypi, python }:
buildPythonPackage rec {
pname = "pycparser";
version = "2.14";
src = fetchPypi {
inherit pname version;
sha256 = "0wvzyb6rxsfj3xcnpa4ynbh9qc7rrbk2277d5wqpphmx9akv8nbr";
};
checkPhase = ''
${python.interpreter} -m unittest discover -s tests
'';
meta = with stdenv.lib; {
description = "C parser in Python";
homepage = https://github.com/eliben/pycparser;
license = licenses.bsd3;
maintainers = with maintainers; [ domenkozar ];
};
}