blob: 0cdbedaa2014dfaffc5d9a5eb271c802733e47d7 (
about) (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
{
buildPythonPackage,
fetchFromGitHub,
lib,
setuptools,
}:
buildPythonPackage rec {
pname = "pybind11-stubgen";
version = "2.5.4";
pyproject = true;
build-system = [ setuptools ];
src = fetchFromGitHub {
owner = "sizmailov";
repo = "pybind11-stubgen";
tag = "v${version}";
hash = "sha256-xOvh5H2n7KOOvsRecwWlaWgFIHUPYxTEOTvM9RIpTTQ=";
};
# 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/${src.tag}";
description = "Generates stubs for python modules";
homepage = "https://github.com/sizmailov/pybind11-stubgen";
license = lib.licenses.bsd3Lbnl;
maintainers = with lib.maintainers; [ qbisi ];
};
}
|