pythonPackages.poetry: 1.0.10 -> 1.1.0

This commit is contained in:
Austin Butler 2020-10-03 13:26:43 -07:00 committed by Jon
parent 8b7914fc9b
commit 9243c64e7f

View File

@ -7,14 +7,11 @@
, httpretty , httpretty
, importlib-metadata , importlib-metadata
, intreehooks , intreehooks
, jsonschema
, keyring , keyring
, lockfile , lockfile
, pexpect , pexpect
, pkginfo , pkginfo
, pygments , poetry-core
, pyparsing
, pyrsistent
, pytestCheckHook , pytestCheckHook
, pytestcov , pytestcov
, pytest-mock , pytest-mock
@ -22,11 +19,12 @@
, requests-toolbelt , requests-toolbelt
, shellingham , shellingham
, tomlkit , tomlkit
, virtualenv
}: }:
buildPythonPackage rec { buildPythonPackage rec {
pname = "poetry"; pname = "poetry";
version = "1.0.10"; version = "1.1.0";
format = "pyproject"; format = "pyproject";
disabled = isPy27; disabled = isPy27;
@ -34,19 +32,13 @@ buildPythonPackage rec {
owner = "python-poetry"; owner = "python-poetry";
repo = pname; repo = pname;
rev = version; rev = version;
sha256 = "00qfzjjs6clh93gfl1px3ma9km8qxl3f4z819nmyl58zc8ni3zyv"; sha256 = "0kl23dkq9n112z1pqjg6f1wv3qk77ij6q5glg15lwrj7yrl9k65c";
}; };
postPatch = '' postPatch = ''
substituteInPlace pyproject.toml \ substituteInPlace pyproject.toml \
--replace "pyrsistent = \"^0.14.2\"" "pyrsistent = \"^0.16.0\"" \ --replace 'importlib-metadata = {version = "^1.6.0", python = "<3.8"}' \
--replace "requests-toolbelt = \"^0.8.0\"" "requests-toolbelt = \"^0.9.1\"" \ 'importlib-metadata = {version = ">=1.6,<2", python = "<3.8"}'
--replace 'importlib-metadata = {version = "~1.1.3", python = "<3.8"}' \
'importlib-metadata = {version = ">=1.3,<2", python = "<3.8"}' \
--replace "tomlkit = \"^0.5.11\"" "tomlkit = \"<2\"" \
--replace "cleo = \"^0.7.6\"" "cleo = \"^0.8.0\"" \
--replace "version = \"^20.0.1\", python = \"^3.5\"" "version = \"^21.0.0\", python = \"^3.5\"" \
--replace "clikit = \"^0.4.2\"" "clikit = \"^0.6.2\""
''; '';
nativeBuildInputs = [ intreehooks ]; nativeBuildInputs = [ intreehooks ];
@ -57,17 +49,16 @@ buildPythonPackage rec {
cleo cleo
clikit clikit
html5lib html5lib
jsonschema
keyring keyring
lockfile lockfile
pexpect pexpect
pkginfo pkginfo
pyparsing poetry-core
pyrsistent
requests requests
requests-toolbelt requests-toolbelt
shellingham shellingham
tomlkit tomlkit
virtualenv
] ++ lib.optionals (pythonOlder "3.8") [ importlib-metadata ]; ] ++ lib.optionals (pythonOlder "3.8") [ importlib-metadata ];
postInstall = '' postInstall = ''
@ -79,7 +70,7 @@ buildPythonPackage rec {
"$out/bin/poetry" completions fish > "$out/share/fish/vendor_completions.d/poetry.fish" "$out/bin/poetry" completions fish > "$out/share/fish/vendor_completions.d/poetry.fish"
''; '';
checkInputs = [ pytestCheckHook httpretty pytest-mock pygments pytestcov ]; checkInputs = [ pytestCheckHook httpretty pytest-mock pytestcov ];
preCheck = "export HOME=$TMPDIR"; preCheck = "export HOME=$TMPDIR";
disabledTests = [ disabledTests = [
# touches network # touches network
@ -88,10 +79,13 @@ buildPythonPackage rec {
"load" "load"
"vcs" "vcs"
"prereleases_if_they_are_compatible" "prereleases_if_they_are_compatible"
"test_executor"
# requires git history to work correctly # requires git history to work correctly
"default_with_excluded_data" "default_with_excluded_data"
# toml ordering has changed # toml ordering has changed
"lock" "lock"
# fs permission errors
"test_builder_should_execute_build_scripts"
]; ];
meta = with lib; { meta = with lib; {