Unverified Commit 8c0f81f6 authored by Weijia Wang's avatar Weijia Wang Committed by GitHub
Browse files

Merge pull request #241815 from r-ryantm/auto-update/python310Packages.returns

python310Packages.returns: 0.20.0 -> 0.21.0
parents 0275b482 f7d24d71
Loading
Loading
Loading
Loading
+20 −10
Original line number Diff line number Diff line
{ lib
, anyio
, curio
, buildPythonPackage
, curio
, fetchFromGitHub
, httpx
, hypothesis
, poetry-core
, pytestCheckHook
, pytest-aio
, pytest-subtests
, pytestCheckHook
, pythonOlder
, setuptools
, trio
, typing-extensions
@@ -16,14 +17,16 @@

buildPythonPackage rec {
  pname = "returns";
  version = "0.20.0";
  version = "0.21.0";
  format = "pyproject";

  disabled = pythonOlder "3.7";

  src = fetchFromGitHub {
    owner = "dry-python";
    repo = "returns";
    rev = "refs/tags/${version}";
    hash = "sha256-28WYjrjmu3hQ8+Snuvl3ykTd86eWYI97AE60p6SVwDQ=";
    hash = "sha256-oYOCoh/pF2g4KGWC2mEnFD+zm2CKL+3x5JjzuZ3QHVQ=";
  };

  postPatch = ''
@@ -40,10 +43,6 @@ buildPythonPackage rec {
    typing-extensions
  ];

  preCheck = ''
    rm -rf returns/contrib/mypy
  '';

  nativeCheckInputs = [
    anyio
    curio
@@ -56,12 +55,23 @@ buildPythonPackage rec {
    trio
  ];

  pytestFlagsArray = [ "--ignore=typesafety" ];
  preCheck = ''
    rm -rf returns/contrib/mypy
  '';

  pythonImportsCheck = [
    "returns"
  ];

  pytestFlagsArray = [
    "--ignore=typesafety"
  ];

  meta = with lib; {
    description = "Make your functions return something meaningful, typed, and safe!";
    homepage = "https://github.com/dry-python/returns";
    changelog = "https://github.com/dry-python/returns/blob/${version}/CHANGELOG.md";
    license = licenses.bsd2;
    maintainers = [ maintainers.jessemoore ];
    maintainers = with maintainers; [ jessemoore ];
  };
}