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