nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 65 lines 1.3 kB view raw
1{ 2 lib, 3 buildPythonPackage, 4 setuptools, 5 chardet, 6 cryptography, 7 feedparser, 8 fetchPypi, 9 mock, 10 pysocks, 11 pytestCheckHook, 12 python-dateutil, 13 python-gnupg, 14 pytz, 15}: 16 17buildPythonPackage (finalAttrs: { 18 pname = "limnoria"; 19 version = "2026.1.16"; 20 pyproject = true; 21 22 src = fetchPypi { 23 inherit (finalAttrs) pname version; 24 hash = "sha256-ZkEXZMjJsEgSwX2a8TwaQ/vtvskSOFwNBZg/Ru5q/bc="; 25 }; 26 27 postPatch = '' 28 substituteInPlace setup.py \ 29 --replace-fail "version=version" 'version="${finalAttrs.version}"' 30 ''; 31 32 build-system = [ setuptools ]; 33 34 dependencies = [ 35 chardet 36 cryptography 37 feedparser 38 mock 39 pysocks 40 python-dateutil 41 python-gnupg 42 ]; 43 44 nativeCheckInputs = [ pytestCheckHook ]; 45 46 checkPhase = '' 47 runHook preCheck 48 export PATH="$PATH:$out/bin"; 49 supybot-test test -v --no-network 50 runHook postCheck 51 ''; 52 53 pythonImportsCheck = [ 54 # Uses the same names as Supybot 55 "supybot" 56 ]; 57 58 meta = { 59 description = "Modified version of Supybot, an IRC bot"; 60 homepage = "https://github.com/ProgVal/Limnoria"; 61 changelog = "https://github.com/progval/Limnoria/releases/tag/master-${finalAttrs.version}"; 62 license = lib.licenses.bsd3; 63 maintainers = [ ]; 64 }; 65})