1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 setuptools,
6 pytestCheckHook,
7}:
8
9buildPythonPackage rec {
10 pname = "unasync";
11 version = "0.5.0";
12
13 format = "pyproject";
14
15 src = fetchFromGitHub {
16 owner = "python-trio";
17 repo = "unasync";
18 rev = "v${version}";
19 sha256 = "0h86i09v4909a8nk5lp36jlwz6rsln6vyg3d0i13ykxa6lrx1c2l";
20 };
21
22 propagatedBuildInputs = [ setuptools ];
23
24 nativeCheckInputs = [ pytestCheckHook ];
25
26 disabledTests = [
27 # mess with $PYTHONPATH
28 "test_build_py_modules"
29 "test_build_py_packages"
30 "test_project_structure_after_build_py_packages"
31 "test_project_structure_after_customized_build_py_packages"
32 ];
33
34 pythonImportsCheck = [ "unasync" ];
35
36 meta = with lib; {
37 description = "Project that can transform your asynchronous code into synchronous code";
38 homepage = "https://github.com/python-trio/unasync";
39 license = with licenses; [
40 mit # or
41 asl20
42 ];
43 maintainers = with maintainers; [ dotlambda ];
44 };
45}