Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.5 kB · 73 lines
Nix
at litex
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374{ lib, buildPythonPackage, fetchFromGitHub, jinja2, markdown, markupsafe, mkdocs, mkdocs-autorefs, pymdown-extensions, pytestCheckHook, pdm-pep517, pythonOlder}:
buildPythonPackage rec { pname = "mkdocstrings"; version = "0.21.2"; format = "pyproject";
disabled = pythonOlder "3.7";
src = fetchFromGitHub { owner = "mkdocstrings"; repo = pname; rev = "refs/tags/${version}"; hash = "sha256-pi0BEe/zhG/V9wh2CO91Cc7Mze93+2tbVo6/2LGQ6Nw="; };
postPatch = '' substituteInPlace pyproject.toml \ --replace 'dynamic = ["version"]' 'version = "${version}"' \ --replace 'license = "ISC"' 'license = {text = "ISC"}' '';
nativeBuildInputs = [ pdm-pep517 ];
propagatedBuildInputs = [ jinja2 markdown markupsafe mkdocs mkdocs-autorefs pymdown-extensions ];
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "mkdocstrings" ];
disabledTestPaths = [ # Circular dependencies "tests/test_extension.py" ];
disabledTests = [ # Not all requirements are available "test_disabling_plugin" ];
meta = with lib; { description = "Automatic documentation from sources for MkDocs"; homepage = "https://github.com/mkdocstrings/mkdocstrings"; changelog = "https://github.com/mkdocstrings/mkdocstrings/blob/${version}/CHANGELOG.md"; license = licenses.isc; maintainers = with maintainers; [ fab ]; };}