Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

python310Packages.ismartgate: remove asynctest #221068

Merged
merged 2 commits into from
Mar 13, 2023
Merged
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
13 changes: 6 additions & 7 deletions pkgs/development/python-modules/ismartgate/default.nix
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
{ lib
, asynctest
, buildPythonPackage
, click
, defusedxml
Expand Down Expand Up @@ -29,6 +28,11 @@ buildPythonPackage rec {
hash = "sha256-o2yzMxrF0WB6MbeL1Tuf0Sq4wS4FDIWZZx1x2rvwLmY=";
};

postPatch = ''
substituteInPlace setup.py \
--replace '"pytest-runner>=5.2",' ""
'';

propagatedBuildInputs = [
click
defusedxml
Expand All @@ -39,25 +43,20 @@ buildPythonPackage rec {
];

nativeCheckInputs = [
asynctest
pytest-asyncio
pytest-raises
pytestCheckHook
respx
];

postPatch = ''
substituteInPlace setup.py \
--replace '"pytest-runner>=5.2",' ""
'';

pythonImportsCheck = [
"ismartgate"
];

meta = with lib; {
description = "Python module to work with the ismartgate and gogogate2 API";
homepage = "https://github.com/bdraco/ismartgate";
changelog = "https://github.com/bdraco/ismartgate/releases/tag/v${version}";
license = with licenses; [ mit ];
maintainers = with maintainers; [ fab ];
};
Expand Down