1{
2 buildPythonPackage,
3 cython,
4 fetchFromGitHub,
5 lib,
6 libyaml,
7 pytestCheckHook,
8 pythonOlder,
9 setuptools,
10}:
11
12buildPythonPackage rec {
13 pname = "pyyaml-ft";
14 version = "8.0.0";
15 pyproject = true;
16
17 disabled = pythonOlder "3.13";
18
19 src = fetchFromGitHub {
20 owner = "Quansight-Labs";
21 repo = "pyyaml-ft";
22 tag = "v${version}";
23 hash = "sha256-GiXYpcAccKgROw144eOPY0gS0xW+3K/jRUl+JnBEaO8=";
24 };
25
26 build-system = [
27 cython
28 setuptools
29 ];
30
31 buildInputs = [ libyaml ];
32
33 pythonImportsCheck = [ "yaml_ft" ];
34
35 nativeCheckInputs = [ pytestCheckHook ];
36
37 meta = {
38 changelog = "https://github.com/Quansight-Labs/pyyaml-ft/blob/${src.tag}/CHANGES";
39 description = "YAML parser and emitter for Python with support for free-threading";
40 homepage = "https://github.com/Quansight-Labs/pyyaml-ft";
41 license = lib.licenses.mit;
42 maintainers = with lib.maintainers; [ dotlambda ];
43 };
44}