python310Packages.bsblan: remove coverage part

This commit is contained in:
Fabian Affolter 2022-04-27 14:46:30 +02:00
parent d123039b2e
commit 9e99a1093b

View file

@ -1,19 +1,16 @@
{ lib { lib
, aiohttp
, aresponses
, buildPythonPackage , buildPythonPackage
, fetchFromGitHub , fetchFromGitHub
, pytestCheckHook
, aresponses
, coverage
, mypy , mypy
, packaging
, poetry-core , poetry-core
, pydantic , pydantic
, pytest-asyncio , pytest-asyncio
, pytest-cov
, pytest-mock , pytest-mock
, pytestCheckHook
, pythonOlder , pythonOlder
, aiohttp
, attrs
, cattrs
, yarl , yarl
}: }:
@ -22,13 +19,13 @@ buildPythonPackage rec {
version = "0.5.5"; version = "0.5.5";
format = "pyproject"; format = "pyproject";
disabled = pythonOlder "3.8"; disabled = pythonOlder "3.9";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "liudger"; owner = "liudger";
repo = "python-bsblan"; repo = "python-bsblan";
rev = "v${version}"; rev = "v${version}";
sha256 = "sha256-kq4cML7D9XC/QRPjGfaWcs0H78OOc2IXGua7qJpWYOQ="; hash = "sha256-kq4cML7D9XC/QRPjGfaWcs0H78OOc2IXGua7qJpWYOQ=";
}; };
nativeBuildInputs = [ nativeBuildInputs = [
@ -37,22 +34,26 @@ buildPythonPackage rec {
propagatedBuildInputs = [ propagatedBuildInputs = [
aiohttp aiohttp
attrs packaging
cattrs
pydantic pydantic
yarl yarl
]; ];
checkInputs = [ checkInputs = [
aresponses aresponses
coverage
mypy mypy
pytest-asyncio pytest-asyncio
pytest-cov
pytest-mock pytest-mock
pytestCheckHook pytestCheckHook
]; ];
postPatch = ''
# Upstream doesn't set a version for the pyproject.toml
substituteInPlace pyproject.toml \
--replace 'version = "0.0.0"' 'version = "${version}"' \
--replace "--cov" ""
'';
pythonImportsCheck = [ pythonImportsCheck = [
"bsblan" "bsblan"
]; ];