Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 21.05 38 lines 791 B view raw
1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, typing-extensions 5, pytestCheckHook 6, pythonOlder 7}: 8 9buildPythonPackage rec { 10 pname = "asyncstdlib"; 11 version = "3.9.1"; 12 disabled = pythonOlder "3.7"; 13 format = "flit"; 14 15 src = fetchFromGitHub { 16 owner = "maxfischer2781"; 17 repo = pname; 18 rev = "v${version}"; 19 sha256 = "13ranr7zi61w52vfrxwkf32bbhk88j0r5c5z2x2h5vw268001lk2"; 20 }; 21 22 propagatedBuildInputs = [ 23 typing-extensions 24 ]; 25 26 checkInputs = [ 27 pytestCheckHook 28 ]; 29 30 pythonImportsCheck = [ "asyncstdlib" ]; 31 32 meta = with lib; { 33 description = "Python library that extends the Python asyncio standard library"; 34 homepage = "https://asyncstdlib.readthedocs.io/"; 35 license = with licenses; [ mit ]; 36 maintainers = with maintainers; [ fab ]; 37 }; 38}