1{
2 buildPythonPackage,
3 fetchFromGitHub,
4 lib,
5 setuptools,
6}:
7
8buildPythonPackage rec {
9 pname = "pybind11-stubgen";
10 version = "2.5.5";
11 pyproject = true;
12
13 build-system = [ setuptools ];
14
15 src = fetchFromGitHub {
16 owner = "sizmailov";
17 repo = "pybind11-stubgen";
18 tag = "v${version}";
19 hash = "sha256-J2LydgkiNQp+2/agwBCSTtr+Ci4zONLkHmnMLFBww24=";
20 };
21
22 # For testing purposes, the upstream source uses a shell script to build the pybind11
23 # project and compares the generated stub file with a preset one.
24 # This process requires network access and takes considerable time to complete.
25 # Therefore, I disabled the check phase.
26 doCheck = false;
27
28 pythonImportsCheck = [ "pybind11_stubgen" ];
29
30 meta = {
31 changelog = "https://github.com/sizmailov/pybind11-stubgen/releases/tag/${src.tag}";
32 description = "Generates stubs for python modules";
33 homepage = "https://github.com/sizmailov/pybind11-stubgen";
34 license = lib.licenses.bsd3Lbnl;
35 maintainers = with lib.maintainers; [ qbisi ];
36 };
37}