mirror of
https://github.com/vale981/poetry2nix
synced 2025-03-06 01:31:39 -05:00
Merge pull request #1545 from rx342/overrides-tensorflow-io
overrides: add libtensorflow for tensorflow-io-gcs-filesystem
This commit is contained in:
commit
1e45a45656
5 changed files with 1057 additions and 0 deletions
|
@ -3342,6 +3342,14 @@ lib.composeManyExtensions [
|
|||
}
|
||||
);
|
||||
|
||||
tensorflow-io-gcs-filesystem = super.tensorflow-io-gcs-filesystem.overridePythonAttrs (
|
||||
old: {
|
||||
buildInputs = (old.buildInputs or [ ]) ++ [
|
||||
pkgs.libtensorflow
|
||||
];
|
||||
}
|
||||
);
|
||||
|
||||
tensorflow = super.tensorflow.overridePythonAttrs (
|
||||
_old: {
|
||||
postInstall = ''
|
||||
|
|
|
@ -159,6 +159,7 @@ in
|
|||
# pyqt5 = (callTest ./pyqt5 { });
|
||||
pyqt6 = callTest ./pyqt6 { };
|
||||
pyside6 = callTest ./pyside6 { };
|
||||
tensorflow = callTest ./tensorflow { };
|
||||
|
||||
# Test deadlocks on darwin, sandboxing issue?
|
||||
dependency-environment = callTest ./dependency-environment { };
|
||||
|
|
5
tests/tensorflow/default.nix
Normal file
5
tests/tensorflow/default.nix
Normal file
|
@ -0,0 +1,5 @@
|
|||
{ poetry2nix }:
|
||||
poetry2nix.mkPoetryEnv {
|
||||
projectDir = ./.;
|
||||
preferWheels = true;
|
||||
}
|
1030
tests/tensorflow/poetry.lock
generated
Normal file
1030
tests/tensorflow/poetry.lock
generated
Normal file
File diff suppressed because it is too large
Load diff
13
tests/tensorflow/pyproject.toml
Normal file
13
tests/tensorflow/pyproject.toml
Normal file
|
@ -0,0 +1,13 @@
|
|||
[tool.poetry]
|
||||
name = "test-tensorflow"
|
||||
version = "0.1.0"
|
||||
description = ""
|
||||
authors = ["Your Name <you@example.com>"]
|
||||
|
||||
[tool.poetry.dependencies]
|
||||
python = ">=3.9, <3.12"
|
||||
tensorflow = "^2.14"
|
||||
|
||||
[build-system]
|
||||
requires = ["poetry-core"]
|
||||
build-backend = "poetry.core.masonry.api"
|
Loading…
Add table
Reference in a new issue