9c6ee729d6
GitOrigin-RevId: 6cee3b5893090b0f5f0a06b4cf42ca4e60e5d222
65 lines
1.1 KiB
Nix
65 lines
1.1 KiB
Nix
{ lib
|
|
, callPackage
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, colorama
|
|
, hatch-requirements-txt
|
|
, hatch-nodejs-version
|
|
, hatchling
|
|
, jinja2
|
|
, markdown
|
|
, mkdocs
|
|
, mkdocs-material-extensions
|
|
, pygments
|
|
, pymdown-extensions
|
|
, pythonOlder
|
|
, regex
|
|
, requests
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "mkdocs-material";
|
|
version = "9.1.13";
|
|
format = "pyproject";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "squidfunk";
|
|
repo = pname;
|
|
rev = "refs/tags/${version}";
|
|
hash = "sha256-S+cCNcQR8Y1UGj+4Nfy9Z10N/9PRq13fSeR2YFntxWI=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
hatch-requirements-txt
|
|
hatch-nodejs-version
|
|
hatchling
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
colorama
|
|
jinja2
|
|
markdown
|
|
mkdocs
|
|
mkdocs-material-extensions
|
|
pygments
|
|
pymdown-extensions
|
|
regex
|
|
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 ];
|
|
};
|
|
}
|