ocamlPackages.hxd: 0.3.2 -> 0.3.3 (#364231)
[NixPkgs.git] / pkgs / development / python-modules / class-doc / default.nix
blob32d69f0927601a37533153de4f9e97c95858ee63
2   lib,
3   buildPythonPackage,
4   fetchFromGitHub,
5   fetchpatch,
6   poetry-core,
7   more-itertools,
8   pytestCheckHook,
9 }:
11 buildPythonPackage rec {
12   pname = "class-doc";
13   version = "0.2.6";
14   format = "pyproject";
16   src = fetchFromGitHub {
17     owner = "danields761";
18     repo = pname;
19     rev = "9b122d85ce667d096ebee75a49350bbdbd48686d"; # no 0.2.6 version tag
20     hash = "sha256-4Sn/TuBvBpl1nvJBg327+sVrjGavkYKEYP32DwLWako=";
21   };
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   ];
32   nativeBuildInputs = [ poetry-core ];
34   propagatedBuildInputs = [ more-itertools ];
36   nativeCheckInputs = [ pytestCheckHook ];
38   pythonImportsCheck = [ "class_doc" ];
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   };