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