at master 961 B view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 setuptools, 6}: 7 8buildPythonPackage rec { 9 pname = "urlmatch"; 10 version = "1.0.1"; 11 pyproject = true; 12 13 src = fetchFromGitHub { 14 owner = "jessepollak"; 15 repo = "urlmatch"; 16 tag = "v${version}"; 17 hash = "sha256-01QkkdtSDBB3s+F7lC/0kZ+r1jxd/S7QA8LkweG9SZI="; 18 }; 19 20 build-system = [ 21 setuptools 22 ]; 23 24 pythonImportsCheck = [ "urlmatch" ]; 25 26 # The only test fails with: 27 # ImportError: cannot import name 'BadMatchPattern' from 'urlmatch' (/private/tmp/nix-build-python3.12-urlmatch-1.0.0.drv-0/source/urlmatch/__init__.py) 28 doCheck = false; 29 30 meta = { 31 description = "Python library for easily pattern matching wildcard URLs"; 32 changelog = "https://github.com/jessepollak/urlmatch/releases/tag/v${version}/CHANGELOG.md"; 33 homepage = "https://github.com/jessepollak/urlmatch"; 34 license = lib.licenses.asl20; 35 maintainers = with lib.maintainers; [ ethancedwards8 ]; 36 }; 37}