Unverified Commit 189f5dcf authored by Nick Cao's avatar Nick Cao Committed by GitHub
Browse files

python312Packages.pybind11-stubgen: init at 2.5.1 (#355442)

parents 8ee63a65 1bd2aeb9
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -213,6 +213,11 @@ lib.mapAttrs mkLicense ({
    fullName = "BSD 3-Clause Clear License";
  };

  bsd3Lbnl = {
    spdxId = "BSD-3-Clause-LBNL";
    fullName = "Lawrence Berkeley National Labs BSD variant license";
  };

  bsdOriginal = {
    spdxId = "BSD-4-Clause";
    fullName = ''BSD 4-clause "Original" or "Old" License'';
+37 −0
Original line number Diff line number Diff line
{
  buildPythonPackage,
  fetchFromGitHub,
  lib,
  setuptools,
}:

buildPythonPackage rec {
  pname = "pybind11-stubgen";
  version = "2.5.1";
  pyproject = true;

  build-system = [ setuptools ];

  src = fetchFromGitHub {
    owner = "sizmailov";
    repo = "pybind11-stubgen";
    rev = "refs/tags/v${version}";
    hash = "sha256-PJiiRSQ92vP5LKWCgBuowkuDdTmC22xyuax2wsH0wOM=";
  };

  # For testing purposes, the upstream source uses a shell script to build the pybind11
  # project and compares the generated stub file with a preset one.
  # This process requires network access and takes considerable time to complete.
  # Therefore, I disabled the check phase.
  doCheck = false;

  pythonImportsCheck = [ "pybind11_stubgen" ];

  meta = {
    changelog = "https://github.com/sizmailov/pybind11-stubgen/releases/tag/v${version}";
    description = "Generates stubs for python modules";
    homepage = "https://github.com/sizmailov/pybind11-stubgen";
    license = lib.licenses.bsd3Lbnl;
    maintainers = with lib.maintainers; [ qbisi ];
  };
}
+1 −6
Original line number Diff line number Diff line
@@ -6,12 +6,7 @@ grafanaPlugin rec {
  zipHash = "sha256-Y/Eh3eWZkPS8Q1eha7sEJ3wTMI7QxOr7MEbPc25fnGg=";
  meta = with lib; {
    description = "Grafana plugin to display air conditions on a psychrometric chart.";
    license = licenses.bsd3 // {
      spdxId = "BSD-3-Clause-LBNL";
      url = "https://spdx.org/licenses/BSD-3-Clause-LBNL.html";
      fullName = "Lawrence Berkeley National Labs BSD variant license";
      shortName = "lbnl-bsd3";
    };
    license = licenses.bsd3Lbnl;
    maintainers = with maintainers; [ nagisa ];
    platforms = platforms.unix;
  };
+2 −0
Original line number Diff line number Diff line
@@ -11162,6 +11162,8 @@ self: super: with self; {
  pybind11 = callPackage ../development/python-modules/pybind11 { };
  pybind11-stubgen = callPackage ../development/python-modules/pybind11-stubgen { };
  pybindgen = callPackage ../development/python-modules/pybindgen { };
  pyblackbird = callPackage ../development/python-modules/pyblackbird { };