Skip to content

Commit

Permalink
test: add test for soundfile
Browse files Browse the repository at this point in the history
  • Loading branch information
rossng committed Jun 18, 2024
1 parent d64e7e6 commit af46929
Show file tree
Hide file tree
Showing 4 changed files with 127 additions and 0 deletions.
1 change: 1 addition & 0 deletions tests/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,7 @@ in
thrift = callTest ./thrift { };
scikit-learn = callTest ./scikit-learn { };
soundfile-wheel = callTest ./soundfile-wheel { };
soundfile = callTest ./soundfile { };
} // lib.optionalAttrs (!stdenv.isDarwin) {
# Editable tests fails on Darwin because of sandbox paths
pep600 = callTest ./pep600 { };
Expand Down
9 changes: 9 additions & 0 deletions tests/soundfile/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{ poetry2nix, runCommand }:
let
env = poetry2nix.mkPoetryEnv {
projectDir = ./.;
};
in
runCommand "soundfile" { } ''
${env}/bin/python -c 'import soundfile; print(soundfile.__version__)' > $out
''
104 changes: 104 additions & 0 deletions tests/soundfile/poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 13 additions & 0 deletions tests/soundfile/pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
[tool.poetry]
name = "soundfile-test"
version = "0.1.0"
description = ""
authors = ["Your Name <you@example.com>"]

[tool.poetry.dependencies]
python = "^3.9"
soundfile = "^0.12.1"

[build-system]
requires = ["poetry-core>=1.1"]
build-backend = "poetry.core.masonry.api"

0 comments on commit af46929

Please sign in to comment.