python3Packages.backoff: use pyproject format

main
Martin Weinelt 2 years ago committed by Sandro Jäckel
parent 0c45c1a09b
commit 73fed7827c
No known key found for this signature in database
GPG Key ID: B1763F8651144063
  1. 24
      pkgs/development/python-modules/backoff/default.nix

@ -1,8 +1,16 @@
{ lib, buildPythonPackage, fetchFromGitHub, pytestCheckHook, poetry, pytest-asyncio, responses }:
{ lib
, buildPythonPackage
, fetchFromGitHub
, poetry-core
, pytestCheckHook
, pytest-asyncio
, responses
}:
buildPythonPackage rec {
pname = "backoff";
version = "2.1.2";
format = "pyproject";
src = fetchFromGitHub {
owner = "litl";
@ -11,11 +19,19 @@ buildPythonPackage rec {
sha256 = "sha256-eKd1g3UxXlpSlNlik80RKXRaw4mZyvAWl3i2GNuZ3hI=";
};
format = "pyproject";
nativeBuildInputs = [
poetry-core
];
nativeBuildInputs = [ poetry ];
checkInputs = [
pytest-asyncio
pytestCheckHook
responses
];
checkInputs = [ pytestCheckHook pytest-asyncio responses ];
pythonImportsCheck = [
"backoff"
];
meta = with lib; {
description = "Function decoration for backoff and retry";

Loading…
Cancel
Save