Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at flake-libs 48 lines 1.0 kB view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 frozenlist, 6 pytest-asyncio, 7 pytest-cov-stub, 8 pytestCheckHook, 9 pythonOlder, 10}: 11 12buildPythonPackage rec { 13 pname = "aiosignal"; 14 version = "1.3.2"; 15 format = "setuptools"; 16 17 disabled = pythonOlder "3.7"; 18 19 src = fetchFromGitHub { 20 owner = "aio-libs"; 21 repo = "aiosignal"; 22 rev = "v${version}"; 23 hash = "sha256-CvNarJpSq8EKnt+PuSerMK/ZVbxL9rp7rQ4dkWykG1M="; 24 }; 25 26 propagatedBuildInputs = [ frozenlist ]; 27 28 nativeCheckInputs = [ 29 pytest-asyncio 30 pytest-cov-stub 31 pytestCheckHook 32 ]; 33 34 postPatch = '' 35 substituteInPlace setup.cfg \ 36 --replace "filterwarnings = error" "" 37 ''; 38 39 pythonImportsCheck = [ "aiosignal" ]; 40 41 meta = with lib; { 42 description = "Python list of registered asynchronous callbacks"; 43 homepage = "https://github.com/aio-libs/aiosignal"; 44 changelog = "https://github.com/aio-libs/aiosignal/blob/v${version}/CHANGES.rst"; 45 license = with licenses; [ asl20 ]; 46 maintainers = with maintainers; [ fab ]; 47 }; 48}