depot/third_party/nixpkgs/pkgs/development/python-modules/mkdocstrings-python/default.nix
Default email 504525a148 Project import generated by Copybara.
GitOrigin-RevId: bd645e8668ec6612439a9ee7e71f7eac4099d4f6
2024-01-02 12:29:13 +01:00

51 lines
990 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, griffe
, mkdocs-material
, mkdocstrings
, pdm-backend
, pytestCheckHook
, pythonOlder
}:
buildPythonPackage rec {
pname = "mkdocstrings-python";
version = "1.7.5";
format = "pyproject";
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "mkdocstrings";
repo = "python";
rev = "refs/tags/${version}";
hash = "sha256-PfAdECR80kYgvaaL+09zsqOeWa8z4pSnORNFnj+/l7M=";
};
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 ];
};
}