From 7e68f0394140a2a3b7e757aaaf36009ed2e402e6 Mon Sep 17 00:00:00 2001 From: Lorenz Leutgeb Date: Fri, 22 Dec 2023 11:51:11 +0100 Subject: [PATCH] highctidh: init at 1.0.2023121800 --- pkgs/by-name/highctidh/package.nix | 40 ++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 pkgs/by-name/highctidh/package.nix diff --git a/pkgs/by-name/highctidh/package.nix b/pkgs/by-name/highctidh/package.nix new file mode 100644 index 00000000..59aaea13 --- /dev/null +++ b/pkgs/by-name/highctidh/package.nix @@ -0,0 +1,40 @@ +{ + lib, + python3, + fetchgit, +}: +with builtins; let + python = python3; +in + python.pkgs.buildPythonApplication rec { + pname = "highctidh"; + version = "1.0.2023121800"; + format = "pyproject"; + + src = fetchgit { + url = "https://codeberg.org/vula/highctidh"; + rev = "v${version}"; + hash = "sha256-83zTz5iBF/ApJV2hnsT2DfN/T36f73MrXmhLDJa5Z8I="; + }; + + postPatch = '' + patchShebangs test.sh + mkdir -p build/tmp + ''; + + propagatedBuildInputs = with python.pkgs; [ + setuptools + build + ]; + + nativeBuildInputs = propagatedBuildInputs; + + doCheck = true; + + meta = with lib; { + description = "Fork of high-ctidh as as a portable shared library with Python bindings."; + homepage = "https://codeberg.org/vula/highctidh"; + license = licenses.gpl3; + maintainers = with maintainers; [lorenzleutgeb]; + }; + }