nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 44 lines 883 B view raw
1{ 2 lib, 3 fetchFromGitHub, 4 python3, 5 pkgs, 6}: 7 8python3.pkgs.buildPythonApplication rec { 9 pname = "cfv"; 10 version = "3.2.0"; 11 pyproject = true; 12 13 src = fetchFromGitHub { 14 owner = "cfv-project"; 15 repo = "cfv"; 16 tag = "v${version}"; 17 sha256 = "sha256-vKlnW6Z0Rg2bptU5fxIKDaOY2b+WY/fgaYZQu5tBU44="; 18 }; 19 20 build-system = with python3.pkgs; [ 21 setuptools 22 ]; 23 24 checkPhase = '' 25 runHook preCheck 26 cd test 27 ulimit -n 4096 28 python3 test.py 29 runHook postCheck 30 ''; 31 32 nativeCheckInputs = [ 33 pkgs.cksfv 34 ]; 35 36 meta = { 37 description = "Utility to verify and create a wide range of checksums"; 38 homepage = "https://github.com/cfv-project/cfv"; 39 changelog = "https://github.com/cfv-project/cfv/releases/tag/v${version}"; 40 license = lib.licenses.gpl2Plus; 41 maintainers = with lib.maintainers; [ jjtt ]; 42 mainProgram = "cfv"; 43 }; 44}