Unverified Commit f1765822 authored by Gaétan Lepage's avatar Gaétan Lepage Committed by GitHub
Browse files

python3Packages.urlmatch: init at 1.0.0 (#384439)

parents c8dad6e2 3ff12aaa
Loading
Loading
Loading
Loading
+37 −0
Original line number Diff line number Diff line
{
  lib,
  buildPythonPackage,
  fetchFromGitHub,
  setuptools,
}:

buildPythonPackage rec {
  pname = "urlmatch";
  version = "1.0.0";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "jessepollak";
    repo = "urlmatch";
    tag = "v${version}";
    hash = "sha256-vNt3SdIIno1XPO9zrTHXw6YSrE1oOWdkN3fszQnR8I0=";
  };

  build-system = [
    setuptools
  ];

  pythonImportsCheck = [ "urlmatch" ];

  # The only test fails with:
  #  ImportError: cannot import name 'BadMatchPattern' from 'urlmatch' (/private/tmp/nix-build-python3.12-urlmatch-1.0.0.drv-0/source/urlmatch/__init__.py)
  doCheck = false;

  meta = {
    description = "Python library for easily pattern matching wildcard URLs";
    changelog = "https://github.com/jessepollak/urlmatch/releases/tag/v${version}/CHANGELOG.md";
    homepage = "https://github.com/jessepollak/urlmatch";
    license = lib.licenses.asl20;
    maintainers = with lib.maintainers; [ ethancedwards8 ];
  };
}
+2 −0
Original line number Diff line number Diff line
@@ -17974,6 +17974,8 @@ self: super: with self; {
  urlman = callPackage ../development/python-modules/urlman { };
  urlmatch = callPackage ../development/python-modules/urlmatch { };
  urlpy = callPackage ../development/python-modules/urlpy { };
  urwid = callPackage ../development/python-modules/urwid { };