Something went wrong. Try again.
lol
Something went wrong. Try again.
1.6 kB · 79 lines
Nix
at master
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980{ lib, buildPythonPackage, fetchFromGitHub, setuptools, importlib-metadata, importlib-resources, jinja2, mkdocs, pyparsing, pyyaml, pyyaml-env-tag, verspec, versionCheckHook, pytestCheckHook, git, shtab, stdenv,}:
buildPythonPackage rec { pname = "mike"; version = "2.1.3"; pyproject = true;
src = fetchFromGitHub { owner = "jimporter"; repo = "mike"; tag = "v${version}"; hash = "sha256-eGUkYcPTrXwsZPqyDgHJlEFXzhMnenoZsjeHVGO/9WU="; };
build-system = [ setuptools ];
dependencies = [ importlib-metadata importlib-resources jinja2 mkdocs pyparsing pyyaml pyyaml-env-tag verspec ];
nativeInstallCheckInputs = [ versionCheckHook ]; doInstallCheck = true;
__darwinAllowLocalNetworking = true;
nativeCheckInputs = [ pytestCheckHook git mkdocs shtab ];
preCheck = '' export PATH=$out/bin:$PATH '' # "stat" on darwin results in "not permitted" instead of "does not exists" + lib.optionalString stdenv.hostPlatform.isDarwin '' substituteInPlace test/unit/test_git_utils.py \ --replace-fail "/home/nonexist" "$(mktemp -d)" '';
pythonImportsCheck = [ "mike" ];
meta = { description = "Manage multiple versions of your MkDocs-powered documentation via Git"; homepage = "https://github.com/jimporter/mike"; changelog = "https://github.com/jimporter/mike/blob/v${version}/CHANGES.md"; license = lib.licenses.bsd3; maintainers = with lib.maintainers; [ marcel ]; mainProgram = "mike"; };}