0d9fc34957
GitOrigin-RevId: 5ed481943351e9fd354aeb557679624224de38d5
61 lines
1.1 KiB
Nix
61 lines
1.1 KiB
Nix
{ lib
|
|
, callPackage
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, hatch-requirements-txt
|
|
, hatch-nodejs-version
|
|
, hatchling
|
|
, jinja2
|
|
, markdown
|
|
, mkdocs
|
|
, mkdocs-material-extensions
|
|
, pygments
|
|
, pymdown-extensions
|
|
, pythonOlder
|
|
, requests
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "mkdocs-material";
|
|
version = "8.5.11";
|
|
format = "pyproject";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "squidfunk";
|
|
repo = pname;
|
|
rev = "refs/tags/${version}";
|
|
hash = "sha256-jF5lpRv2itkhkqH7RzUXEH5e0Bia3SnTApfoy61RfJA=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
hatch-requirements-txt
|
|
hatch-nodejs-version
|
|
hatchling
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
jinja2
|
|
markdown
|
|
mkdocs
|
|
mkdocs-material-extensions
|
|
pygments
|
|
pymdown-extensions
|
|
requests
|
|
];
|
|
|
|
# No tests for python
|
|
doCheck = false;
|
|
|
|
pythonImportsCheck = [
|
|
"mkdocs"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Material for mkdocs";
|
|
homepage = "https://squidfunk.github.io/mkdocs-material/";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ dandellion ];
|
|
};
|
|
}
|