nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at r-updates 52 lines 1.1 kB view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchPypi, 5 jaraco-collections, 6 jaraco-itertools, 7 jaraco-logging, 8 jaraco-stream, 9 jaraco-text, 10 pytestCheckHook, 11 pythonOlder, 12 pytz, 13 setuptools-scm, 14 importlib-resources, 15}: 16 17buildPythonPackage rec { 18 pname = "irc"; 19 version = "20.5.0"; 20 pyproject = true; 21 22 src = fetchPypi { 23 inherit pname version; 24 hash = "sha256-jdv9GfcSBM7Ount8cnJLFbP6h7q16B5Fp1vvc2oaPHY="; 25 }; 26 27 nativeBuildInputs = [ setuptools-scm ]; 28 29 propagatedBuildInputs = [ 30 jaraco-collections 31 jaraco-itertools 32 jaraco-logging 33 jaraco-stream 34 jaraco-text 35 pytz 36 ] 37 ++ lib.optionals (pythonOlder "3.12") [ importlib-resources ]; 38 39 nativeCheckInputs = [ pytestCheckHook ]; 40 41 __darwinAllowLocalNetworking = true; 42 43 pythonImportsCheck = [ "irc" ]; 44 45 meta = { 46 description = "IRC (Internet Relay Chat) protocol library for Python"; 47 homepage = "https://github.com/jaraco/irc"; 48 changelog = "https://github.com/jaraco/irc/blob/v${version}/NEWS.rst"; 49 license = lib.licenses.mit; 50 maintainers = [ ]; 51 }; 52}