python3Packages.twentemilieu: fix build

This commit is contained in:
Jonathan Ringer
2021-11-30 18:52:53 -08:00
parent f8628e91ab
commit 3b0f66c2db
@@ -5,6 +5,7 @@
, aiohttp
, yarl
, aresponses
, poetry-core
, pytest-asyncio
, pytestCheckHook
}:
@@ -12,6 +13,7 @@
buildPythonPackage rec {
pname = "twentemilieu";
version = "0.4.2";
format = "pyproject";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
@@ -21,6 +23,16 @@ buildPythonPackage rec {
sha256 = "1lf31ldbrsmxhbrcg284pwpvjfmwnssv3gqwd5vm2hvd9lwqn6ii";
};
# coverage tests aren't useful when consuming releases
postPatch = ''
substituteInPlace pyproject.toml \
--replace '--cov' ""
'';
nativeBuildInputs = [
poetry-core
];
propagatedBuildInputs = [
aiohttp
yarl