diff --git a/maintainers/maintainer-list.nix b/maintainers/maintainer-list.nix index 151453a2378e..d77092b06b57 100644 --- a/maintainers/maintainer-list.nix +++ b/maintainers/maintainer-list.nix @@ -6903,6 +6903,12 @@ githubId = 10786794; name = "Markus Hihn"; }; + jessemoore = { + email = "jesse@jessemoore.dev"; + github = "jesseDMoore1994"; + githubId = 30251156; + name = "Jesse Moore"; + }; jethro = { email = "jethrokuan95@gmail.com"; github = "jethrokuan"; diff --git a/pkgs/development/python-modules/returns/default.nix b/pkgs/development/python-modules/returns/default.nix new file mode 100644 index 000000000000..5a5ce355feed --- /dev/null +++ b/pkgs/development/python-modules/returns/default.nix @@ -0,0 +1,65 @@ +{ lib +, anyio +, curio +, buildPythonPackage +, fetchFromGitHub +, httpx +, hypothesis +, mypy +, poetry-core +, pytestCheckHook +, pytest-aio +, pytest-cov +, pytest-mypy +, pytest-mypy-plugins +, pytest-subtests +, setuptools +, trio +, typing-extensions +}: + +buildPythonPackage rec { + pname = "returns"; + version = "0.19.0"; + format = "pyproject"; + + src = fetchFromGitHub { + owner = "dry-python"; + repo = "returns"; + rev = "refs/tags/${version}"; + hash = "sha256-yKlW5M7LlK9xF4GiCKtUVrZwwSmFVjCnDhnzaNFcAsU="; + }; + + nativeBuildInputs = [ + poetry-core + ]; + + propagatedBuildInputs = [ + typing-extensions + ]; + + nativeCheckInputs = [ + anyio + curio + httpx + hypothesis + mypy + pytestCheckHook + pytest-aio + pytest-cov + pytest-mypy + pytest-mypy-plugins + pytest-subtests + setuptools + trio + ]; + + pytestFlagsArray = [ "--ignore=typesafety" ]; + + meta = with lib; { + description = "Make your functions return something meaningful, typed, and safe!"; + homepage = "returns.rtfd.io"; + license = licenses.bsd2; + maintainers = [ maintainers.jessemoore ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 276cf90b4595..ca10f5ac7fa2 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -10073,6 +10073,8 @@ self: super: with self; { retrying = callPackage ../development/python-modules/retrying { }; + returns = callPackage ../development/python-modules/returns { }; + retworkx = callPackage ../development/python-modules/retworkx { }; rfc3339 = callPackage ../development/python-modules/rfc3339 { };