Skip to content

Commit

Permalink
add pypy
Browse files Browse the repository at this point in the history
  • Loading branch information
Defelo committed Dec 18, 2024
1 parent 6deda94 commit 94aee51
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Python/lib/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,10 @@
from heapq import heapify, heappop, heappush
from pathlib import Path

import numpy as np
try:
import numpy as np
except:
pass

YEAR: int | None = None
DAY: int | None = None
10 changes: 10 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,14 @@
sympy
]);

pypy = pkgs.pypy310.withPackages (p:
with p; [
# z3
# numpy
networkx
sympy
]);

downloadInput = pkgs.stdenvNoCC.mkDerivation {
name = "aoc-download-input";
dontUnpack = true;
Expand Down Expand Up @@ -111,6 +119,7 @@
fetchRanks,
live,
python,
pypy,
...
}: {
default = pkgs.mkShell {
Expand All @@ -129,6 +138,7 @@

# Python
python
pypy

# Haskell
(haskellPackages.ghcWithPackages (p: with p; [split regex-tdfa]))
Expand Down

0 comments on commit 94aee51

Please sign in to comment.