Files
nixpkgs/pkgs/development/python-modules/urlmatch/default.nix
Ethan Carter Edwards 3ff12aaaaf python3Packages.urlmatch: init at 1.0.0
Signed-off-by: Ethan Carter Edwards <ethan@ethancedwards.com>
2025-03-01 20:59:56 -05:00

38 lines
961 B
Nix

{
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 ];
};
}