python310Packages.hypothesis-auto: use poetry-core

This commit is contained in:
Robert Schütz 2022-11-28 08:04:25 -08:00 committed by Robert Schütz
parent 857e8c001b
commit 84ed05ea4c

View file

@ -1,8 +1,9 @@
{ lib
, buildPythonPackage
, fetchPypi
, fetchpatch
, hypothesis
, poetry
, poetry-core
, pydantic
, pytest
, pythonOlder
@ -20,6 +21,14 @@ buildPythonPackage rec {
hash = "sha256-XiwvsJ3AmEJRLYBjC7eSNZodM9LARzrUfuI9oL6eMrE=";
};
patches = [
(fetchpatch {
name = "switch-to-poetry-core.patch";
url = "https://github.com/timothycrosley/hypothesis-auto/commit/8277b4232617c0433f80e9c2844452b9fae67a65.patch";
hash = "sha256-/0z0nphtQnUBiLYhhzLZT59kQgktSugaBg+ePNxy0qI=";
})
];
postPatch = ''
# https://github.com/timothycrosley/hypothesis-auto/pull/20
substituteInPlace pyproject.toml \
@ -28,7 +37,7 @@ buildPythonPackage rec {
'';
nativeBuildInputs = [
poetry
poetry-core
];
propagatedBuildInputs = [