1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 fetchpatch,
6 poetry-core,
7 more-itertools,
8 pytestCheckHook,
9}:
10
11buildPythonPackage {
12 pname = "class-doc";
13 version = "0.2.6";
14 format = "pyproject";
15
16 src = fetchFromGitHub {
17 owner = "danields761";
18 repo = "class-doc";
19 rev = "9b122d85ce667d096ebee75a49350bbdbd48686d"; # no 0.2.6 version tag
20 hash = "sha256-4Sn/TuBvBpl1nvJBg327+sVrjGavkYKEYP32DwLWako=";
21 };
22
23 patches = [
24 # https://github.com/danields761/class-doc/pull/2
25 (fetchpatch {
26 name = "poetry-to-poetry-core.patch";
27 url = "https://github.com/danields761/class-doc/commit/03b224ad0a6190c30e4932fa2ccd4a7f0c5c4b5d.patch";
28 hash = "sha256-shWPRaZkvtJ1Ae17aCOm6eLs905jxwq84SWOrChEs7M=";
29 })
30 ];
31
32 nativeBuildInputs = [ poetry-core ];
33
34 propagatedBuildInputs = [ more-itertools ];
35
36 nativeCheckInputs = [ pytestCheckHook ];
37
38 pythonImportsCheck = [ "class_doc" ];
39
40 meta = with lib; {
41 description = "Extract attributes docstrings defined in various ways";
42 homepage = "https://github.com/danields761/class-doc";
43 license = licenses.mit;
44 maintainers = with maintainers; [ gador ];
45 };
46}