From e3610c39f74dc41a592d2b0af50368a33398dc8e Mon Sep 17 00:00:00 2001 From: jjtt <3908945+jjtt@users.noreply.github.com> Date: Sun, 17 Nov 2024 20:06:34 +0200 Subject: [PATCH 1/3] maintainers: add jjtt --- maintainers/maintainer-list.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/maintainers/maintainer-list.nix b/maintainers/maintainer-list.nix index 0072f5ab6826..7882d9226edd 100644 --- a/maintainers/maintainer-list.nix +++ b/maintainers/maintainer-list.nix @@ -10892,6 +10892,11 @@ githubId = 691552; name = "Jamie McClymont"; }; + jjtt = { + github = "jjtt"; + githubId = 3908945; + name = "Juho Törmä"; + }; jk = { email = "hello+nixpkgs@j-k.io"; matrix = "@j-k:matrix.org"; From 59a791c1970848c3d0827eb295fdb3bf49e043fb Mon Sep 17 00:00:00 2001 From: jjtt <3908945+jjtt@users.noreply.github.com> Date: Wed, 29 Jan 2025 20:24:46 +0200 Subject: [PATCH 2/3] cfv: init at 3.1.0 --- pkgs/by-name/cf/cfv/package.nix | 43 +++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 pkgs/by-name/cf/cfv/package.nix diff --git a/pkgs/by-name/cf/cfv/package.nix b/pkgs/by-name/cf/cfv/package.nix new file mode 100644 index 000000000000..dcac59f78f1d --- /dev/null +++ b/pkgs/by-name/cf/cfv/package.nix @@ -0,0 +1,43 @@ +{ + lib, + fetchFromGitHub, + python3, + pkgs, +}: + +python3.pkgs.buildPythonApplication rec { + pname = "cfv"; + version = "3.1.0"; + pyproject = true; + + src = fetchFromGitHub { + owner = "cfv-project"; + repo = "cfv"; + tag = "v${version}"; + sha256 = "1wxf30gsijsdvhv5scgkq0bqi8qi4dgs9dwppdrca5wxgy7a8sn5"; + }; + + build-system = with python3.pkgs; [ + setuptools + ]; + + checkPhase = '' + runHook preCheck + cd test + python3 test.py + runHook postCheck + ''; + + nativeCheckInputs = [ + pkgs.cksfv + ]; + + meta = { + description = "Utility to verify and create a wide range of checksums"; + homepage = "https://github.com/cfv-project/cfv"; + changelog = "https://github.com/cfv-project/cfv/releases/tag/v${version}"; + license = lib.licenses.gpl2Plus; + maintainers = with lib.maintainers; [ jjtt ]; + mainProgram = "cfv"; + }; +} From 5ad45e8e4d6fdb372af759bbfaabce741821dbea Mon Sep 17 00:00:00 2001 From: jjtt <3908945+jjtt@users.noreply.github.com> Date: Wed, 29 Jan 2025 20:37:47 +0200 Subject: [PATCH 3/3] cfv: avoid file descriptor warn from tests See: https://github.com/cfv-project/cfv/issues/22 --- pkgs/by-name/cf/cfv/package.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/pkgs/by-name/cf/cfv/package.nix b/pkgs/by-name/cf/cfv/package.nix index dcac59f78f1d..46d62a01571b 100644 --- a/pkgs/by-name/cf/cfv/package.nix +++ b/pkgs/by-name/cf/cfv/package.nix @@ -24,6 +24,7 @@ python3.pkgs.buildPythonApplication rec { checkPhase = '' runHook preCheck cd test + ulimit -n 4096 python3 test.py runHook postCheck '';