nixpkgs/pkgs/development/python-modules/mkdocs-material/default.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.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 ];
};
}