diff --git a/pkgs/development/python-modules/pcpp/default.nix b/pkgs/development/python-modules/pcpp/default.nix new file mode 100644 index 00000000000..1c032ea62b4 --- /dev/null +++ b/pkgs/development/python-modules/pcpp/default.nix @@ -0,0 +1,24 @@ +{ buildPythonPackage +, fetchFromGitHub +, stdenv +}: + +buildPythonPackage rec { + pname = "pcpp"; + version = "1.21"; + + src = fetchFromGitHub { + owner = "ned14"; + repo = "pcpp"; + rev = "v${version}"; + sha256 = "0k52qyxzdngdhyn4sya2qn1w1a4ll0mcla4h4gb1v91fk4lw25dm"; + fetchSubmodules = true; + }; + + meta = with stdenv.lib; { + homepage = https://github.com/ned14/pcpp; + description = "A C99 preprocessor written in pure Python"; + license = licenses.bsd0; + maintainers = with maintainers; [ rakesh4g ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index ed66a20db53..d8bd6029362 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -897,6 +897,8 @@ in { pc-ble-driver-py = toPythonModule (callPackage ../development/python-modules/pc-ble-driver-py { }); + pcpp = callPackage ../development/python-modules/pcpp { }; + pdf2image = callPackage ../development/python-modules/pdf2image { }; pdfminer = callPackage ../development/python-modules/pdfminer_six { };