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