1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4, git
5, importlib-metadata
6, importlib-resources
7, jinja2
8, mkdocs
9, pythonOlder
10, pyyaml
11, unittestCheckHook
12, verspec
13}:
14
15buildPythonPackage rec {
16 pname = "mike";
17 version = "unstable-2023-05-06";
18 format = "setuptools";
19
20 disabled = pythonOlder "3.7";
21
22 src = fetchFromGitHub {
23 owner = "jimporter";
24 repo = pname;
25 rev = "300593c338b18f61f604d18457c351e166318020";
26 hash = "sha256-Sjj2275IJDtLjG6uO9h4FbgxXTMgqD8c/rJj6iOxfuI=";
27 };
28
29 propagatedBuildInputs = [
30 importlib-metadata
31 importlib-resources
32 jinja2
33 mkdocs
34 pyyaml
35 verspec
36 ];
37
38 nativeCheckInputs = [
39 git
40 unittestCheckHook
41 ];
42
43 preCheck = ''
44 export PATH=$out/bin:$PATH
45 '';
46
47 # Difficult to setup
48 doCheck = false;
49
50 pythonImportsCheck = [
51 "mike"
52 ];
53
54 meta = with lib; {
55 description = "Manage multiple versions of your MkDocs-powered documentation";
56 homepage = "https://github.com/jimporter/mike";
57 license = licenses.bsd3;
58 maintainers = with maintainers; [ marsam ];
59 };
60}