1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 flit-core,
6 pytestCheckHook,
7 pythonOlder,
8}:
9
10buildPythonPackage rec {
11 pname = "mdurl";
12 version = "0.1.2";
13 format = "pyproject";
14
15 disabled = pythonOlder "3.6";
16
17 src = fetchFromGitHub {
18 owner = "hukkin";
19 repo = "mdurl";
20 rev = version;
21 hash = "sha256-wxV8DKeTwKpFTUBuGTQXaVHc0eW1//Y+2V8Kgs85TDM=";
22 };
23
24 nativeBuildInputs = [ flit-core ];
25
26 nativeCheckInputs = [ pytestCheckHook ];
27
28 pythonImportsCheck = [ "mdurl" ];
29
30 meta = with lib; {
31 description = "URL utilities for markdown-it";
32 homepage = "https://github.com/hukkin/mdurl";
33 license = licenses.mit;
34 maintainers = with maintainers; [ fab ];
35 };
36}