Merge pull request #170617 from fabaff/bsblan-cov

python310Packages.bsblan: remove coverage part
This commit is contained in:
Fabian Affolter 2022-04-27 20:59:13 +02:00 committed by GitHub
commit 1ac9ac82f2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,19 +1,16 @@
{ lib
, aiohttp
, aresponses
, buildPythonPackage
, fetchFromGitHub
, pytestCheckHook
, aresponses
, coverage
, mypy
, packaging
, poetry-core
, pydantic
, pytest-asyncio
, pytest-cov
, pytest-mock
, pytestCheckHook
, pythonOlder
, aiohttp
, attrs
, cattrs
, yarl
}:
@ -22,13 +19,13 @@ buildPythonPackage rec {
version = "0.5.5";
format = "pyproject";
disabled = pythonOlder "3.8";
disabled = pythonOlder "3.9";
src = fetchFromGitHub {
owner = "liudger";
repo = "python-bsblan";
rev = "v${version}";
sha256 = "sha256-kq4cML7D9XC/QRPjGfaWcs0H78OOc2IXGua7qJpWYOQ=";
hash = "sha256-kq4cML7D9XC/QRPjGfaWcs0H78OOc2IXGua7qJpWYOQ=";
};
nativeBuildInputs = [
@ -37,22 +34,26 @@ buildPythonPackage rec {
propagatedBuildInputs = [
aiohttp
attrs
cattrs
packaging
pydantic
yarl
];
checkInputs = [
aresponses
coverage
mypy
pytest-asyncio
pytest-cov
pytest-mock
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 = [
"bsblan"
];