python3Packages.urlmatch: init at 1.0.0

Signed-off-by: Ethan Carter Edwards <ethan@ethancedwards.com>
This commit is contained in:
Ethan Carter Edwards
2025-03-01 20:59:56 -05:00
parent d72e06b97e
commit 3ff12aaaaf
2 changed files with 39 additions and 0 deletions
@@ -0,0 +1,37 @@
{
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
View File
@@ -17935,6 +17935,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 { };