Commit 31574f72 authored by Steven Allen's avatar Steven Allen
Browse files

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.
parent d2bb0541
Loading
Loading
Loading
Loading
+6 −6
Original line number Diff line number Diff line
@@ -6,19 +6,19 @@
  pytestCheckHook,
}:

buildPythonPackage rec {
buildPythonPackage (finalAttrs: {
  pname = "mdurl";
  version = "0.1.2";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "hukkin";
    owner = "executablebooks";
    repo = "mdurl";
    rev = version;
    tag = finalAttrs.version;
    hash = "sha256-wxV8DKeTwKpFTUBuGTQXaVHc0eW1//Y+2V8Kgs85TDM=";
  };

  nativeBuildInputs = [ flit-core ];
  build-system = [ flit-core ];

  nativeCheckInputs = [ pytestCheckHook ];

@@ -26,8 +26,8 @@ buildPythonPackage rec {

  meta = {
    description = "URL utilities for markdown-it";
    homepage = "https://github.com/hukkin/mdurl";
    homepage = "https://github.com/executablebooks/mdurl";
    license = lib.licenses.mit;
    maintainers = with lib.maintainers; [ fab ];
  };
}
})