d5f4a57cbf
GitOrigin-RevId: ce5e4a6ef2e59d89a971bc434ca8ca222b9c7f5e
51 lines
990 B
Nix
51 lines
990 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, griffe
|
|
, mkdocs-material
|
|
, mkdocstrings
|
|
, pdm-backend
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "mkdocstrings-python";
|
|
version = "1.3.0";
|
|
format = "pyproject";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "mkdocstrings";
|
|
repo = "python";
|
|
rev = "refs/tags/${version}";
|
|
hash = "sha256-grcxAVyKfF3CtpjE+uuQe2jvz+xmKU/oHqgyqK7Erhc=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
pdm-backend
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
griffe
|
|
mkdocstrings
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
mkdocs-material
|
|
pytestCheckHook
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"mkdocstrings_handlers"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Python handler for mkdocstrings";
|
|
homepage = "https://github.com/mkdocstrings/python";
|
|
changelog = "https://github.com/mkdocstrings/python/blob/${version}/CHANGELOG.md";
|
|
license = licenses.isc;
|
|
maintainers = with maintainers; [ fab ];
|
|
};
|
|
}
|