Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 buildPythonPackage, 4 aiodns, 5 aiohttp, 6 fetchPypi, 7 gnupg, 8 pyasn1, 9 pyasn1-modules, 10 pytestCheckHook, 11 substituteAll, 12 pythonOlder, 13}: 14 15buildPythonPackage rec { 16 pname = "slixmpp"; 17 version = "1.8.5"; 18 format = "setuptools"; 19 20 disabled = pythonOlder "3.7"; 21 22 src = fetchPypi { 23 inherit pname version; 24 hash = "sha256-dePwrUhVX39ckijnBmwdQ1izPWQLT753PsNLA7f66aM="; 25 }; 26 27 propagatedBuildInputs = [ 28 aiodns 29 aiohttp 30 pyasn1 31 pyasn1-modules 32 ]; 33 34 nativeCheckInputs = [ pytestCheckHook ]; 35 36 patches = [ 37 (substituteAll { 38 src = ./hardcode-gnupg-path.patch; 39 inherit gnupg; 40 }) 41 ]; 42 43 disabledTestPaths = [ 44 # Exclude live tests 45 "tests/live_test.py" 46 "tests/test_xep_0454.py" 47 ]; 48 49 pythonImportsCheck = [ "slixmpp" ]; 50 51 meta = with lib; { 52 description = "Python library for XMPP"; 53 homepage = "https://slixmpp.readthedocs.io/"; 54 changelog = "https://codeberg.org/poezio/slixmpp/releases/tag/slix-${version}"; 55 license = licenses.mit; 56 maintainers = with maintainers; [ fab ]; 57 }; 58}