66 lines
1.1 KiB
Nix
66 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.8";
|
|
format = "pyproject";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "squidfunk";
|
|
repo = pname;
|
|
rev = "refs/tags/${version}";
|
|
hash = "sha256-a0AeRjS0fV4q3z6MPZBBv8Ffv61W3zHPrnPT4evBnaw=";
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
}
|