Something went wrong. Try again.
Nix Packages collection & NixOS github.com/NixOS/nixpkgs
Something went wrong. Try again.
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889{ lib, buildPythonPackage, fetchFromGitHub, setuptools, importlib-metadata, importlib-resources, jinja2, mkdocs, pyparsing, pyyaml, pyyaml-env-tag, verspec, versionCheckHook, pytestCheckHook, git, shtab, stdenv, fetchpatch,}:
buildPythonPackage rec { pname = "mike"; version = "2.2.0"; pyproject = true;
src = fetchFromGitHub { owner = "jimporter"; repo = "mike"; tag = "v${version}"; hash = "sha256-+QFtInHma433XI4EcMTpFKZVdk+x2JREo73qM35G0pQ="; };
patches = [ (fetchpatch { name = "fix-shtab-unit-tests.patch"; url = "https://github.com/jimporter/mike/commit/22ccb5f6d6e53285845d38a9559afab7248b5c9b.patch"; hash = "sha256-hzTNkdq283+ybw0Fn5vIEMtgH7F1gt84ZzwL3Ru+5MY="; }) ];
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"; };}