1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 hatchling,
6 lark,
7 pytestCheckHook,
8}:
9
10buildPythonPackage rec {
11 pname = "rfc3987-syntax";
12 version = "1.1.0";
13 pyproject = true;
14
15 src = fetchFromGitHub {
16 owner = "willynilly";
17 repo = "rfc3987-syntax";
18 tag = "v${version}";
19 hash = "sha256-6jA/x8KnwBvyW2k384/EB/NJ8BmJJTEHA8YUlQP+1Y4=";
20 };
21
22 build-system = [
23 hatchling
24 ];
25
26 dependencies = [
27 lark
28 ];
29
30 nativeCheckInputs = [
31 pytestCheckHook
32 ];
33
34 pythonImportsCheck = [
35 "rfc3987_syntax"
36 ];
37
38 meta = {
39 changelog = "https://github.com/willynilly/rfc3987-syntax/releases/tag/${src.tag}";
40 description = "Helper functions to syntactically validate strings according to RFC 3987";
41 homepage = "https://github.com/willynilly/rfc3987-syntax";
42 license = lib.licenses.mit;
43 maintainers = with lib.maintainers; [ ];
44 };
45}