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