Skip to content

Commit

Permalink
Merge pull request #250165 from tjni/pytest-mockservers
Browse files Browse the repository at this point in the history
python3.pkgs.pytest-mockservers: fully replace poetry with poetry-core
  • Loading branch information
natsukium authored Aug 21, 2023
2 parents 885cbec + 204870b commit e95a587
Showing 1 changed file with 12 additions and 5 deletions.
17 changes: 12 additions & 5 deletions pkgs/development/python-modules/pytest-mockservers/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
, buildPythonPackage
, pythonOlder
, fetchFromGitHub
, fetchpatch
, poetry-core
, aiohttp
, pytest
Expand All @@ -19,13 +20,17 @@ buildPythonPackage rec {
owner = "Gr1N";
repo = pname;
rev = version;
sha256 = "0xql0fnw7m2zn103601gqbpyd761kzvgjj2iz9hjsv56nr4z1g9i";
hash = "sha256-Mb3wSbambC1h+lFI+fafwZzm78IvADNAsF/Uw60DFHc=";
};

postPatch = ''
substituteInPlace pyproject.toml \
--replace "poetry.masonry.api" "poetry.core.masonry.api"
'';
patches = [
# https://github.com/Gr1N/pytest-mockservers/pull/75
(fetchpatch {
name = "use-poetry-core.patch";
url = "https://github.com/Gr1N/pytest-mockservers/commit/c7731186a4e12851ab1c15ab56e652bb48ed59c4.patch";
hash = "sha256-/5X3xjJwt2gs3t6f/6n1QZ+CTBq/5+cQE+MgNWyz+Hs=";
})
];

nativeBuildInputs = [
poetry-core
Expand All @@ -40,6 +45,8 @@ buildPythonPackage rec {
pytest-asyncio
];

__darwinAllowLocalNetworking = true;

nativeCheckInputs = [
pytestCheckHook
];
Expand Down

0 comments on commit e95a587

Please sign in to comment.