{ lib, anyio, buildPythonPackage, fetchFromGitHub, httpx, hypothesis, poetry-core, pytest-aio, pytest-subtests, pytestCheckHook, pythonOlder, setuptools, trio, typing-extensions, }: buildPythonPackage rec { pname = "returns"; version = "0.26.0"; pyproject = true; disabled = pythonOlder "3.10"; src = fetchFromGitHub { owner = "dry-python"; repo = "returns"; tag = version; hash = "sha256-VQzsa/uNTQVND0kc20d25to/6LELEiS3cqvG7a1kDw4="; }; postPatch = '' sed -i setup.cfg \ -e '/--cov.*/d' \ -e '/--mypy.*/d' ''; nativeBuildInputs = [ poetry-core ]; propagatedBuildInputs = [ typing-extensions ]; nativeCheckInputs = [ anyio httpx hypothesis pytestCheckHook pytest-aio pytest-subtests setuptools trio ]; preCheck = '' rm -rf returns/contrib/mypy ''; pythonImportsCheck = [ "returns" ]; disabledTestPaths = [ "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/${src.tag}/CHANGELOG.md"; license = licenses.bsd2; maintainers = with maintainers; [ jessemoore ]; }; }