Files
Steven Allen 31574f72ca python3Packages.mdurl: modernize and fix upstream
- Switch upstream to "executablebooks" (see the pypi page). It looks
like the maintainer (hukkin) moved the repo there at some point then
re-forked it back (likely for continued development).
- Specify that `flit-core` is the build system.
- Use finalAttrs instead of a recursive attribute set.
2026-04-11 16:16:08 -07:00

34 lines
684 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
flit-core,
pytestCheckHook,
}:
buildPythonPackage (finalAttrs: {
pname = "mdurl";
version = "0.1.2";
pyproject = true;
src = fetchFromGitHub {
owner = "executablebooks";
repo = "mdurl";
tag = finalAttrs.version;
hash = "sha256-wxV8DKeTwKpFTUBuGTQXaVHc0eW1//Y+2V8Kgs85TDM=";
};
build-system = [ flit-core ];
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "mdurl" ];
meta = {
description = "URL utilities for markdown-it";
homepage = "https://github.com/executablebooks/mdurl";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ fab ];
};
})