Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 7 additions & 4 deletions pkgs/development/python-modules/pytest-aio/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -16,16 +16,16 @@

buildPythonPackage rec {
pname = "pytest-aio";
version = "1.9.0";
version = "2.0.0";
pyproject = true;

disabled = pythonOlder "3.9";
disabled = pythonOlder "3.10";

src = fetchFromGitHub {
owner = "klen";
repo = "pytest-aio";
tag = version;
hash = "sha256-6RxYn8/HAvXv1AEgSIEOLiaBkGgTcqQhWK+xbtxgj/o=";
rev = "43681bcfc6d2ee07bf9397a1b42d1ccfbb891deb";
hash = "sha256-IBtiy4pyXblIkYQunFO6HpBkCnBcEpTqcFtVELrULkk=";
};

build-system = [ poetry-core ];
Expand All @@ -42,6 +42,9 @@ buildPythonPackage rec {
anyio
hypothesis
pytestCheckHook
]
# https://github.com/python-trio/trio-asyncio/issues/160
++ lib.optionals (pythonOlder "3.14") [
trio-asyncio
]
++ lib.concatAttrValues optional-dependencies;
Expand Down
23 changes: 16 additions & 7 deletions pkgs/development/python-modules/returns/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,11 @@
fetchFromGitHub,
httpx,
hypothesis,
mypy,
poetry-core,
pytest-aio,
pytest-mypy,
pytest-mypy-plugins,
pytest-subtests,
pytestCheckHook,
pythonOlder,
Expand All @@ -31,8 +34,7 @@ buildPythonPackage rec {

postPatch = ''
sed -i setup.cfg \
-e '/--cov.*/d' \
-e '/--mypy.*/d'
-e '/--cov.*/d'
'';

nativeBuildInputs = [ poetry-core ];
Expand All @@ -42,18 +44,25 @@ buildPythonPackage rec {
nativeCheckInputs = [
anyio
httpx
hypothesis
# https://github.com/dry-python/returns/issues/2224
(hypothesis.overrideAttrs (old: {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add a new attribute in python-packages.nix: #421201

src = fetchFromGitHub {
owner = "HypothesisWorks";
repo = "hypothesis";
tag = "hypothesis-python-6.136.9";
hash = "sha256-Q1wxIJwAYKZ0x6c85CJSGgcdKw9a3xFw8YpJROElSNU=";
};
}))
mypy
pytestCheckHook
pytest-aio
pytest-mypy
pytest-mypy-plugins
pytest-subtests
setuptools
trio
];

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

pythonImportsCheck = [ "returns" ];

disabledTestPaths = [ "typesafety" ];
Expand Down
Loading