Merge pull request #212049 from jesseDMoore1994/returns-init

python3Packages.returns: init at 0.19.0
This commit is contained in:
Nick Cao 2023-02-26 09:30:54 +08:00 committed by GitHub
commit 3507763343
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 73 additions and 0 deletions

View File

@ -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";

View File

@ -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 ];
};
}

View File

@ -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 { };