mirror of
https://github.com/vale981/poetry2nix
synced 2025-03-05 09:11:39 -05:00
Merge pull request #1665 from cpcloud/avro-python3
This commit is contained in:
commit
eb18f2f89b
5 changed files with 50 additions and 0 deletions
|
@ -293,6 +293,11 @@ lib.composeManyExtensions [
|
|||
autoPatchelfIgnoreMissingDeps = true;
|
||||
});
|
||||
|
||||
avro-python3 = prev.avro-python3.overridePythonAttrs (attrs: {
|
||||
nativeBuildInputs = attrs.nativeBuildInputs or [ ]
|
||||
++ [ final.isort final.pycodestyle ];
|
||||
});
|
||||
|
||||
aws-cdk-asset-node-proxy-agent-v6 = prev.aws-cdk-asset-node-proxy-agent-v6.overridePythonAttrs (
|
||||
old: lib.optionalAttrs (!(old.src.isWheel or false)) {
|
||||
postPatch = ''
|
||||
|
|
11
tests/avro-python3/default.nix
Normal file
11
tests/avro-python3/default.nix
Normal file
|
@ -0,0 +1,11 @@
|
|||
{ poetry2nix, python3, runCommand }:
|
||||
let
|
||||
env = poetry2nix.mkPoetryEnv {
|
||||
python = python3;
|
||||
pyproject = ./pyproject.toml;
|
||||
poetrylock = ./poetry.lock;
|
||||
};
|
||||
in
|
||||
runCommand "avro-python3-test" { } ''
|
||||
${env}/bin/python -c 'import avro; print(avro.__version__)' > $out
|
||||
''
|
20
tests/avro-python3/poetry.lock
generated
Normal file
20
tests/avro-python3/poetry.lock
generated
Normal file
|
@ -0,0 +1,20 @@
|
|||
# This file is automatically @generated by Poetry 1.8.2 and should not be changed by hand.
|
||||
|
||||
[[package]]
|
||||
name = "avro-python3"
|
||||
version = "1.10.2"
|
||||
description = "Avro is a serialization and RPC framework."
|
||||
optional = false
|
||||
python-versions = ">=3.5"
|
||||
files = [
|
||||
{file = "avro-python3-1.10.2.tar.gz", hash = "sha256:3b63f24e6b04368c3e4a6f923f484be0230d821aad65ac36108edbff29e9aaab"},
|
||||
]
|
||||
|
||||
[package.extras]
|
||||
snappy = ["python-snappy"]
|
||||
zstandard = ["zstandard"]
|
||||
|
||||
[metadata]
|
||||
lock-version = "2.0"
|
||||
python-versions = "^3.10"
|
||||
content-hash = "c13c79a4d02e7658dd2226b023c630ece7b181eb0777eefcdd1ed96b791ea116"
|
13
tests/avro-python3/pyproject.toml
Normal file
13
tests/avro-python3/pyproject.toml
Normal file
|
@ -0,0 +1,13 @@
|
|||
[tool.poetry]
|
||||
name = "avro-python3-test"
|
||||
version = "0.1.0"
|
||||
description = ""
|
||||
authors = ["Your Name <you@example.com>"]
|
||||
|
||||
[tool.poetry.dependencies]
|
||||
python = "^3.10"
|
||||
avro-python3 = "*"
|
||||
|
||||
[build-system]
|
||||
requires = ["poetry-core>=1.5"]
|
||||
build-backend = "poetry.core.masonry.api"
|
|
@ -162,6 +162,7 @@ in
|
|||
pandas = callTest ./pandas { };
|
||||
python-magic = callTest ./python-magic { };
|
||||
cmdstanpy = callTest ./cmdstanpy { };
|
||||
avro-python3 = callTest ./avro-python3 { };
|
||||
} // lib.optionalAttrs (!stdenv.isDarwin) {
|
||||
# Editable tests fails on Darwin because of sandbox paths
|
||||
pep600 = callTest ./pep600 { };
|
||||
|
|
Loading…
Add table
Reference in a new issue