Robert Schütz 2023-08-26 09:43:42 -07:00
parent 169f5fa545
commit 92236affa2
2 changed files with 13 additions and 34 deletions

View File

@ -10,34 +10,13 @@ let
poetry = self.callPackage ./unwrapped.nix { };
# version overrides required by poetry and its plugins
cachecontrol = super.cachecontrol.overridePythonAttrs (old: rec {
version = "0.12.14";
format = "setuptools";
src = fetchFromGitHub {
owner = "ionrock";
repo = "cachecontrol";
rev = "v${version}";
hash = "sha256-BuBaKP7OAYoT+SPVhtE6l9U/KmN21OKTL6poV5a6+0c=";
};
nativeCheckInputs = old.nativeCheckInputs ++ [
self.lockfile
];
});
keyring = super.keyring.overridePythonAttrs (old: rec {
version = "23.13.1";
src = fetchPypi {
inherit (old) pname;
inherit version;
hash = "sha256-ui4VqbNeIZCNCq9OCkesxS1q4zRE3w2itJ1BpG721ng=";
};
});
poetry-core = super.poetry-core.overridePythonAttrs (old: rec {
version = "1.6.1";
version = "1.7.0";
src = fetchFromGitHub {
owner = "python-poetry";
repo = "poetry-core";
rev = version;
hash = "sha256-Gc22Y2T4uO39jiOqEUFeOfnVCbknuDjmzFPZgk2eY74=";
hash = "sha256-OfY2zc+5CgOrgbiPVnvMdT4h1S7Aek8S7iThl6azmsk=";
};
patches = [ ];
nativeCheckInputs = old.nativeCheckInputs ++ [

View File

@ -4,17 +4,15 @@
, pythonOlder
, fetchFromGitHub
, installShellFiles
, pythonRelaxDepsHook
, build
, cachecontrol
, cleo
, crashtest
, dulwich
, filelock
, html5lib
, installer
, jsonschema
, keyring
, lockfile
, packaging
, pexpect
, pkginfo
@ -27,7 +25,6 @@
, shellingham
, tomlkit
, trove-classifiers
, urllib3
, virtualenv
, xattr
, tomli
@ -44,20 +41,26 @@
buildPythonPackage rec {
pname = "poetry";
version = "1.5.1";
version = "1.6.1";
format = "pyproject";
disabled = pythonOlder "3.7";
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "python-poetry";
repo = pname;
rev = "refs/tags/${version}";
hash = "sha256-1zqfGzSI5RDACSNcz0tLA4VKMFwE5uD/YqOkgpzg2nQ=";
hash = "sha256-/OvYT4Vix1t5Yx/Tx0z3E9L9qJ4OdI4maQqUVl8H524=";
};
nativeBuildInputs = [
installShellFiles
pythonRelaxDepsHook
];
pythonRelaxDeps = [
# only pinned to avoid dependency on Rust
"jsonschema"
];
propagatedBuildInputs = [
@ -66,12 +69,9 @@ buildPythonPackage rec {
cleo
crashtest
dulwich
filelock
html5lib
installer
jsonschema
keyring
lockfile
packaging
pexpect
pkginfo
@ -84,7 +84,6 @@ buildPythonPackage rec {
shellingham
tomlkit
trove-classifiers
urllib3
virtualenv
] ++ lib.optionals (stdenv.isDarwin) [
xattr
@ -130,6 +129,7 @@ buildPythonPackage rec {
"load"
"vcs"
"prereleases_if_they_are_compatible"
"test_builder_setup_generation_runs_with_pip_editable"
"test_executor"
# requires git history to work correctly
"default_with_excluded_data"