mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-06-09 06:43:36 +00:00
- 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.
34 lines
684 B
Nix
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 ];
|
|
};
|
|
})
|