nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 50 lines 1.1 kB view raw
1{ 2 lib, 3 python3, 4 fetchFromGitHub, 5 nix-update-script, 6 7 # support setting socks proxies in `ALL_PROXY` environment variable 8 supportSocks ? true, 9}: 10let 11 version = "1.9.2"; 12in 13python3.pkgs.buildPythonApplication { 14 pname = "fangfrisch"; 15 inherit version; 16 pyproject = true; 17 18 src = fetchFromGitHub { 19 owner = "rseichter"; 20 repo = "fangfrisch"; 21 tag = version; 22 hash = "sha256-8upIh9Z+ismvuKcuEe+gJ4W9NLw/Wq15zjFpy8X9yVo="; 23 }; 24 25 nativeBuildInputs = [ 26 python3.pkgs.setuptools 27 python3.pkgs.wheel 28 ]; 29 30 propagatedBuildInputs = 31 with python3.pkgs; 32 [ 33 requests 34 sqlalchemy 35 ] 36 ++ lib.optional supportSocks pysocks; 37 38 pythonImportsCheck = [ "fangfrisch" ]; 39 40 passthru.updateScript = nix-update-script { }; 41 42 meta = { 43 description = "Update and verify unofficial Clam Anti-Virus signatures"; 44 homepage = "https://github.com/rseichter/fangfrisch"; 45 changelog = "https://github.com/rseichter/fangfrisch/blob/${version}/CHANGELOG.rst"; 46 license = lib.licenses.gpl3Only; 47 maintainers = with lib.maintainers; [ happysalada ]; 48 mainProgram = "fangfrisch"; 49 }; 50}