Files
nixpkgs/pkgs/development/python-modules/class-doc/default.nix
T
Michael Daniels 075e8c2c4f treewide: change 'format = "pyproject";' to 'pyproject = true;'
This is almost all find-and-replace.

I manually edited:
* pkgs/development/python-modules/notifications-android-tv/default.nix,
* pkgs/servers/home-assistant/default.nix,
* pkgs/development/tools/continuous-integration/buildbot/master.nix

A few files have not been changed in this PR because they would cause rebuilds.

This PR should have 0 rebuilds.
2026-01-12 17:50:35 -05:00

47 lines
1.1 KiB
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
fetchpatch,
poetry-core,
more-itertools,
pytestCheckHook,
}:
buildPythonPackage {
pname = "class-doc";
version = "0.2.6";
pyproject = true;
src = fetchFromGitHub {
owner = "danields761";
repo = "class-doc";
rev = "9b122d85ce667d096ebee75a49350bbdbd48686d"; # no 0.2.6 version tag
hash = "sha256-4Sn/TuBvBpl1nvJBg327+sVrjGavkYKEYP32DwLWako=";
};
patches = [
# https://github.com/danields761/class-doc/pull/2
(fetchpatch {
name = "poetry-to-poetry-core.patch";
url = "https://github.com/danields761/class-doc/commit/03b224ad0a6190c30e4932fa2ccd4a7f0c5c4b5d.patch";
hash = "sha256-shWPRaZkvtJ1Ae17aCOm6eLs905jxwq84SWOrChEs7M=";
})
];
nativeBuildInputs = [ poetry-core ];
propagatedBuildInputs = [ more-itertools ];
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "class_doc" ];
meta = {
description = "Extract attributes docstrings defined in various ways";
homepage = "https://github.com/danields761/class-doc";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ gador ];
};
}