diff options
Diffstat (limited to 'pkgs/development/python-modules/returns/default.nix')
-rw-r--r-- | pkgs/development/python-modules/returns/default.nix | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/pkgs/development/python-modules/returns/default.nix b/pkgs/development/python-modules/returns/default.nix index c9fcac37f9324..d12e4ccf1f5eb 100644 --- a/pkgs/development/python-modules/returns/default.nix +++ b/pkgs/development/python-modules/returns/default.nix @@ -5,13 +5,9 @@ , fetchFromGitHub , httpx , hypothesis -, mypy , poetry-core , pytestCheckHook , pytest-aio -, pytest-cov -, pytest-mypy -, pytest-mypy-plugins , pytest-subtests , setuptools , trio @@ -30,6 +26,12 @@ buildPythonPackage rec { hash = "sha256-28WYjrjmu3hQ8+Snuvl3ykTd86eWYI97AE60p6SVwDQ="; }; + postPatch = '' + sed -i setup.cfg \ + -e '/--cov.*/d' \ + -e '/--mypy.*/d' + ''; + nativeBuildInputs = [ poetry-core ]; @@ -38,17 +40,17 @@ buildPythonPackage rec { typing-extensions ]; + preCheck = '' + rm -rf returns/contrib/mypy + ''; + nativeCheckInputs = [ anyio curio httpx hypothesis - mypy pytestCheckHook pytest-aio - pytest-cov - pytest-mypy - pytest-mypy-plugins pytest-subtests setuptools trio @@ -58,7 +60,7 @@ buildPythonPackage rec { meta = with lib; { description = "Make your functions return something meaningful, typed, and safe!"; - homepage = "returns.rtfd.io"; + homepage = "https://github.com/dry-python/returns"; license = licenses.bsd2; maintainers = [ maintainers.jessemoore ]; }; |