nixpkgs/pkgs/development/python-modules/mkdocs-material/default.nix
2023-01-05 01:10:14 +01:00

62 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 ];
};
}