Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, poetry-core 5, more-itertools 6, pytestCheckHook 7}: 8 9buildPythonPackage rec { 10 pname = "class-doc"; 11 version = "0.2.6"; 12 format = "pyproject"; 13 14 src = fetchFromGitHub { 15 owner = "danields761"; 16 repo = "${pname}"; 17 rev = "9b122d85ce667d096ebee75a49350bbdbd48686d"; # no 0.2.6 version tag 18 hash = "sha256-4Sn/TuBvBpl1nvJBg327+sVrjGavkYKEYP32DwLWako="; 19 }; 20 21 nativeBuildInputs = [ 22 poetry-core 23 ]; 24 25 postPatch = '' 26 substituteInPlace pyproject.toml --replace \ 27 "poetry.masonry.api" \ 28 "poetry.core.masonry.api" 29 ''; 30 31 propagatedBuildInputs = [ 32 more-itertools 33 ]; 34 35 nativeCheckInputs = [ 36 pytestCheckHook 37 ]; 38 39 pythonImportsCheck = [ 40 "class_doc" 41 ]; 42 43 meta = with lib; { 44 description = "Extract attributes docstrings defined in various ways"; 45 homepage = "https://github.com/danields761/class-doc"; 46 license = licenses.mit; 47 maintainers = with maintainers; [ gador ]; 48 }; 49}