lol

cnpypp: init at 0-unstable-2025-06-22 (#422095)

authored by

Silvan Mosberger and committed by
GitHub
cd248d65 31cbfc64

+55
+55
pkgs/by-name/cn/cnpypp/package.nix
··· 1 + { 2 + lib, 3 + stdenv, 4 + fetchFromGitHub, 5 + cmake, 6 + boost, 7 + libzip, 8 + range-v3, 9 + }: 10 + 11 + stdenv.mkDerivation { 12 + pname = "cnpypp"; 13 + version = "0-unstable-2025-06-22"; 14 + 15 + src = fetchFromGitHub { 16 + owner = "mreininghaus"; 17 + repo = "cnpypp"; 18 + rev = "c6cd4e2078e4f39e862720b66fb211c45577c510"; 19 + hash = "sha256-aV57931nis0W2cwCNeMjQDip9Au7K76VpC/BqACnT5M="; 20 + }; 21 + 22 + nativeBuildInputs = [ cmake ]; 23 + buildInputs = [ 24 + boost 25 + libzip 26 + range-v3 27 + ]; 28 + 29 + cmakeFlags = [ 30 + (lib.cmakeFeature "CNPYPP_SPAN_IMPL" "BOOST") 31 + ]; 32 + 33 + doCheck = stdenv.buildPlatform.canExecute stdenv.hostPlatform; 34 + 35 + checkPhase = '' 36 + runHook preCheck 37 + 38 + ./example1 39 + ./example2 40 + ./example_c 41 + ./range_example 42 + ./range_zip_example 43 + ./npz_speedtest 44 + 45 + runHook postCheck 46 + ''; 47 + 48 + meta = { 49 + description = "C++17 library that allows to read and write NumPy data files"; 50 + homepage = "https://github.com/mreininghaus/cnpypp"; 51 + license = lib.licenses.mit; 52 + maintainers = with lib.maintainers; [ jherland ]; 53 + platforms = lib.platforms.all; 54 + }; 55 + }