blob: be2bf4692a71bcdd864fe69a9bf981b8735fea7e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
{
lib,
buildPythonPackage,
fetchFromGitHub,
setuptools,
}:
buildPythonPackage rec {
pname = "urlmatch";
version = "1.0.1";
pyproject = true;
src = fetchFromGitHub {
owner = "jessepollak";
repo = "urlmatch";
tag = "v${version}";
hash = "sha256-01QkkdtSDBB3s+F7lC/0kZ+r1jxd/S7QA8LkweG9SZI=";
};
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 ];
};
}
|