mirror of
https://github.com/vale981/poetry2nix
synced 2025-03-06 01:31:39 -05:00
chore: don't patch fancycompleter
when building from wheel
This commit is contained in:
parent
2d5a11ae37
commit
b318b64ce9
6 changed files with 126 additions and 1 deletions
|
@ -12646,6 +12646,9 @@
|
|||
"cython",
|
||||
"setuptools"
|
||||
],
|
||||
"pyrepl": [
|
||||
"setuptools"
|
||||
],
|
||||
"pyrevolve": [
|
||||
"cython",
|
||||
"setuptools"
|
||||
|
@ -18142,6 +18145,9 @@
|
|||
"poetry-core",
|
||||
"setuptools"
|
||||
],
|
||||
"wmctrl": [
|
||||
"setuptools"
|
||||
],
|
||||
"woob": [
|
||||
"setuptools"
|
||||
],
|
||||
|
|
|
@ -617,7 +617,7 @@ lib.composeManyExtensions [
|
|||
|
||||
fancycompleter = super.fancycompleter.overridePythonAttrs (
|
||||
old: {
|
||||
postPatch = ''
|
||||
postPatch = lib.optionalString (!(old.src.isWheel or false)) ''
|
||||
substituteInPlace setup.py \
|
||||
--replace 'setup_requires="setupmeta"' 'setup_requires=[]' \
|
||||
--replace 'versioning="devcommit"' 'version="${old.version}"'
|
||||
|
|
|
@ -145,5 +145,6 @@ builtins.removeAttrs
|
|||
test-no-extras = callTest ./test-no-extras { };
|
||||
missing-iswheel = callTest ./missing-iswheel { };
|
||||
wheel-wheel = callTest ./wheel-wheel { };
|
||||
fancycompleter-wheel = callTest ./fancycompleter-wheel { };
|
||||
}
|
||||
skipTests
|
||||
|
|
12
tests/fancycompleter-wheel/default.nix
Normal file
12
tests/fancycompleter-wheel/default.nix
Normal file
|
@ -0,0 +1,12 @@
|
|||
{ lib, poetry2nix, python3 }:
|
||||
let
|
||||
env = poetry2nix.mkPoetryEnv {
|
||||
python = python3;
|
||||
pyproject = ./pyproject.toml;
|
||||
poetrylock = ./poetry.lock;
|
||||
preferWheels = true;
|
||||
};
|
||||
pkg = env.python.pkgs.fancycompleter;
|
||||
isFancycompleterWheel = pkg.src.isWheel;
|
||||
in
|
||||
assert isFancycompleterWheel; pkg
|
91
tests/fancycompleter-wheel/poetry.lock
generated
Normal file
91
tests/fancycompleter-wheel/poetry.lock
generated
Normal file
|
@ -0,0 +1,91 @@
|
|||
# This file is automatically @generated by Poetry and should not be changed by hand.
|
||||
|
||||
[[package]]
|
||||
name = "fancycompleter"
|
||||
version = "0.9.1"
|
||||
description = "colorful TAB completion for Python prompt"
|
||||
category = "main"
|
||||
optional = false
|
||||
python-versions = "*"
|
||||
files = [
|
||||
{file = "fancycompleter-0.9.1-py3-none-any.whl", hash = "sha256:dd076bca7d9d524cc7f25ec8f35ef95388ffef9ef46def4d3d25e9b044ad7080"},
|
||||
{file = "fancycompleter-0.9.1.tar.gz", hash = "sha256:09e0feb8ae242abdfd7ef2ba55069a46f011814a80fe5476be48f51b00247272"},
|
||||
]
|
||||
|
||||
[package.dependencies]
|
||||
pyreadline = {version = "*", markers = "platform_system == \"Windows\""}
|
||||
pyrepl = ">=0.8.2"
|
||||
|
||||
[[package]]
|
||||
name = "pdbpp"
|
||||
version = "0.10.3"
|
||||
description = "pdb++, a drop-in replacement for pdb"
|
||||
category = "main"
|
||||
optional = false
|
||||
python-versions = "*"
|
||||
files = [
|
||||
{file = "pdbpp-0.10.3-py2.py3-none-any.whl", hash = "sha256:79580568e33eb3d6f6b462b1187f53e10cd8e4538f7d31495c9181e2cf9665d1"},
|
||||
{file = "pdbpp-0.10.3.tar.gz", hash = "sha256:d9e43f4fda388eeb365f2887f4e7b66ac09dce9b6236b76f63616530e2f669f5"},
|
||||
]
|
||||
|
||||
[package.dependencies]
|
||||
fancycompleter = ">=0.8"
|
||||
pygments = "*"
|
||||
wmctrl = "*"
|
||||
|
||||
[package.extras]
|
||||
funcsigs = ["funcsigs"]
|
||||
testing = ["funcsigs", "pytest"]
|
||||
|
||||
[[package]]
|
||||
name = "pygments"
|
||||
version = "2.14.0"
|
||||
description = "Pygments is a syntax highlighting package written in Python."
|
||||
category = "main"
|
||||
optional = false
|
||||
python-versions = ">=3.6"
|
||||
files = [
|
||||
{file = "Pygments-2.14.0-py3-none-any.whl", hash = "sha256:fa7bd7bd2771287c0de303af8bfdfc731f51bd2c6a47ab69d117138893b82717"},
|
||||
{file = "Pygments-2.14.0.tar.gz", hash = "sha256:b3ed06a9e8ac9a9aae5a6f5dbe78a8a58655d17b43b93c078f094ddc476ae297"},
|
||||
]
|
||||
|
||||
[package.extras]
|
||||
plugins = ["importlib-metadata"]
|
||||
|
||||
[[package]]
|
||||
name = "pyreadline"
|
||||
version = "2.1"
|
||||
description = "A python implmementation of GNU readline."
|
||||
category = "main"
|
||||
optional = false
|
||||
python-versions = "*"
|
||||
files = [
|
||||
{file = "pyreadline-2.1.zip", hash = "sha256:4530592fc2e85b25b1a9f79664433da09237c1a270e4d78ea5aa3a2c7229e2d1"},
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "pyrepl"
|
||||
version = "0.9.0"
|
||||
description = "A library for building flexible command line interfaces"
|
||||
category = "main"
|
||||
optional = false
|
||||
python-versions = "*"
|
||||
files = [
|
||||
{file = "pyrepl-0.9.0.tar.gz", hash = "sha256:292570f34b5502e871bbb966d639474f2b57fbfcd3373c2d6a2f3d56e681a775"},
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "wmctrl"
|
||||
version = "0.4"
|
||||
description = "A tool to programmatically control windows inside X"
|
||||
category = "main"
|
||||
optional = false
|
||||
python-versions = "*"
|
||||
files = [
|
||||
{file = "wmctrl-0.4.tar.gz", hash = "sha256:66cbff72b0ca06a22ec3883ac3a4d7c41078bdae4fb7310f52951769b10e14e0"},
|
||||
]
|
||||
|
||||
[metadata]
|
||||
lock-version = "2.0"
|
||||
python-versions = "^3.9"
|
||||
content-hash = "f60fd4a117cdf3eb30b26f1a3db195b1cf047a282442f7149691324c54998099"
|
15
tests/fancycompleter-wheel/pyproject.toml
Normal file
15
tests/fancycompleter-wheel/pyproject.toml
Normal file
|
@ -0,0 +1,15 @@
|
|||
[tool.poetry]
|
||||
name = "fancycompleter-wheel"
|
||||
version = "0.1.0"
|
||||
description = "Test of fancycompleter wheel"
|
||||
authors = ["Your Name <you@example.com>"]
|
||||
|
||||
[tool.poetry.dependencies]
|
||||
python = "^3.9"
|
||||
pdbpp = "^0.10.3"
|
||||
fancycompleter = "^0.9.1"
|
||||
wmctrl = "^0.4"
|
||||
|
||||
[build-system]
|
||||
requires = ["poetry-core>=1"]
|
||||
build-backend = "poetry.core.masonry.api"
|
Loading…
Add table
Reference in a new issue