superfile: 1.1.6 -> 1.1.7 (#371308)
[NixPkgs.git] / pkgs / development / python-modules / mdformat-toc / default.nix
blob3d4c3fe42d0f40ecf5cf6491bb6a1356eb5b9a90
2   lib,
3   buildPythonPackage,
4   fetchFromGitHub,
5   mdformat,
6   poetry-core,
7   pytestCheckHook,
8   pythonOlder,
9 }:
11 buildPythonPackage rec {
12   pname = "mdformat-toc";
13   version = "0.3.0";
14   pyproject = true;
16   disabled = pythonOlder "3.7";
18   src = fetchFromGitHub {
19     owner = "hukkin";
20     repo = pname;
21     tag = version;
22     hash = "sha256-3EX6kGez408tEYiR9VSvi3GTrb4ds+HJwpFflv77nkg=";
23   };
25   nativeBuildInputs = [ poetry-core ];
27   propagatedBuildInputs = [ mdformat ];
29   nativeCheckInputs = [ pytestCheckHook ];
31   pythonImportsCheck = [ "mdformat_toc" ];
33   meta = with lib; {
34     description = "Mdformat plugin to generate a table of contents";
35     homepage = "https://github.com/hukkin/mdformat-toc";
36     license = licenses.mit;
37     maintainers = with maintainers; [
38       aldoborrero
39       polarmutex
40     ];
41   };