poetry: 0.12.17 -> 1.0.3

This commit is contained in:
Cassidy Dingenskirchen 2020-02-22 19:25:57 +01:00 committed by Jon
parent 2758e3975a
commit df54d70e3e

View file

@ -1,5 +1,5 @@
{ lib, buildPythonPackage, fetchPypi, callPackage { lib, buildPythonPackage, fetchPypi, callPackage
, isPy27, isPy34 , isPy27, isPy34, pythonOlder
, cleo , cleo
, requests , requests
, cachy , cachy
@ -7,7 +7,6 @@
, pyrsistent , pyrsistent
, pyparsing , pyparsing
, cachecontrol , cachecontrol
, lockfile
, pkginfo , pkginfo
, html5lib , html5lib
, shellingham , shellingham
@ -17,42 +16,43 @@
, pathlib2 , pathlib2
, virtualenv , virtualenv
, functools32 , functools32
, clikit
, keyring
, pexpect
, importlib-metadata
, pytest , pytest
, jsonschema , jsonschema
, intreehooks
, lockfile
}: }:
let let
cleo6 = cleo.overridePythonAttrs (oldAttrs: rec {
version = "0.6.8";
src = fetchPypi {
inherit (oldAttrs) pname;
inherit version;
sha256 = "06zp695hq835rkaq6irr1ds1dp2qfzyf32v60vxpd8rcnxv319l5";
};
});
glob2 = callPackage ./glob2.nix { }; glob2 = callPackage ./glob2.nix { };
in buildPythonPackage rec { in buildPythonPackage rec {
pname = "poetry"; pname = "poetry";
version = "0.12.17"; version = "1.0.3";
src = fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version;
sha256 = "0gxwcd65qjmzqzppf53x51sic1rbcd9py6cdzx3aprppipimslvf"; sha256 = "0fx1ilgkrsqjjnpgv5zljsp0wpcsywdqvvi8im9z396qq6qpk830";
}; };
postPatch = '' postPatch = ''
substituteInPlace setup.py --replace \ substituteInPlace pyproject.toml \
"requests-toolbelt>=0.8.0,<0.9.0" \ --replace "pyrsistent = \"^0.14.2\"" "pyrsistent = \"^0.15.0\"" \
"requests-toolbelt>=0.8.0,<0.10.0" \ --replace "requests-toolbelt = \"^0.8.0\"" "requests-toolbelt = \"^0.9.0\"" \
--replace 'pyrsistent>=0.14.2,<0.15.0' 'pyrsistent>=0.14.2,<0.16.0' --replace "importlib-metadata = {version = \"~1.1.3\", python = \"<3.8\"}" \
"importlib-metadata = {version = \"~1.3.0\", python = \"<3.8\"}"
''; '';
format = "pyproject"; format = "pyproject";
nativeBuildInputs = [ intreehooks ];
propagatedBuildInputs = [ propagatedBuildInputs = [
cachy cleo
cleo6 clikit
requests requests
cachy cachy
requests-toolbelt requests-toolbelt
@ -60,13 +60,16 @@ in buildPythonPackage rec {
pyrsistent pyrsistent
pyparsing pyparsing
cachecontrol cachecontrol
lockfile
pkginfo pkginfo
html5lib html5lib
shellingham shellingham
tomlkit tomlkit
pexpect
keyring
lockfile
] ++ lib.optionals (isPy27 || isPy34) [ typing pathlib2 glob2 ] ] ++ lib.optionals (isPy27 || isPy34) [ typing pathlib2 glob2 ]
++ lib.optionals isPy27 [ virtualenv functools32 subprocess32 ]; ++ lib.optionals isPy27 [ virtualenv functools32 subprocess32 ]
++ lib.optionals (pythonOlder "3.8") [ importlib-metadata ];
postInstall = '' postInstall = ''
mkdir -p "$out/share/bash-completion/completions" mkdir -p "$out/share/bash-completion/completions"
@ -85,7 +88,7 @@ in buildPythonPackage rec {
''; '';
meta = with lib; { meta = with lib; {
homepage = https://github.com/sdispater/poetry; homepage = "https://python-poetry.org/";
description = "Python dependency management and packaging made easy"; description = "Python dependency management and packaging made easy";
license = licenses.mit; license = licenses.mit;
maintainers = with maintainers; [ jakewaksbaum ]; maintainers = with maintainers; [ jakewaksbaum ];