new test
parent
11e4aed516
commit
1bc17e8f25
|
|
@ -20,13 +20,6 @@
|
|||
projectDir = self;
|
||||
overrides = overrides.withDefaults (self: super: {
|
||||
pillow = super.pillow.overridePythonAttrs(old: {
|
||||
# Use preConfigure from nixpkgs to fix library detection issues and
|
||||
# impurities which can break the build process; this also requires
|
||||
# adding propagatedBuildInputs and buildInputs from the same source.
|
||||
# propagatedBuildInputs = (old.buildInputs or []) ++ pkgs.python3.pkgs.pillow.propagatedBuildInputs;
|
||||
# buildInputs = (old.buildInputs or []) ++ pkgs.python3.pkgs.pillow.buildInputs;
|
||||
# preConfigure = (old.preConfigure or "") + pkgs.python3.pkgs.pillow.preConfigure;
|
||||
|
||||
# https://github.com/nix-community/poetry2nix/issues/1139
|
||||
patches = (old.patches or []) ++ nixpkgs.lib.optionals (old.version == "9.5.0") [
|
||||
(pkgs.fetchpatch {
|
||||
|
|
@ -39,6 +32,7 @@
|
|||
};
|
||||
docker = pkgs.dockerTools.buildImage {
|
||||
name = "test_flake_poetry2nix";
|
||||
tag = "latest";
|
||||
copyToRoot = pkgs.buildEnv {
|
||||
name = "test_flake_poetry2nix_root_img";
|
||||
paths = [ self.packages.${system}.test_flake_poetry2nix ];
|
||||
|
|
|
|||
|
|
@ -1,8 +1,14 @@
|
|||
import numpy as np
|
||||
import matplotlib.pyplot as plt
|
||||
import argparse
|
||||
|
||||
from pathlib import Path
|
||||
|
||||
|
||||
def main():
|
||||
parser = argparse.ArgumentParser(prog="test_p2n")
|
||||
parser.add_argument("file", type=Path)
|
||||
args = parser.parse_args()
|
||||
print("plop")
|
||||
fig, (ax1, ax2) = plt.subplots(2, 1)
|
||||
# make a little extra space between the subplots
|
||||
|
|
@ -33,4 +39,4 @@ def main():
|
|||
|
||||
cxy, f = ax2.csd(s1, s2, 256, 1.0 / dt)
|
||||
ax2.set_ylabel("CSD (dB)")
|
||||
plt.savefig("test.pdf")
|
||||
plt.savefig(args.file)
|
||||
|
|
|
|||
Loading…
Reference in New Issue