about summary refs log tree commit diff
path: root/pkgs/development/python-modules/twentemilieu
diff options
context:
space:
mode:
authorJonathan Ringer <jonringer117@gmail.com>2021-11-29 12:45:09 -0800
committerJonathan Ringer <jonringer117@gmail.com>2021-11-30 18:52:53 -0800
commit3b0f66c2db6d8249b483f324fee40afee1530231 (patch)
treea976c2eb0c7e4e6bf7b8f02ee0f28acbbd4df559 /pkgs/development/python-modules/twentemilieu
parentf8628e91abeefa1ab908ed1e105df6b4cd9372b9 (diff)
python3Packages.twentemilieu: fix build
Diffstat (limited to 'pkgs/development/python-modules/twentemilieu')
-rw-r--r--pkgs/development/python-modules/twentemilieu/default.nix12
1 files changed, 12 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/twentemilieu/default.nix b/pkgs/development/python-modules/twentemilieu/default.nix
index 1a32eb2cb5344..d60db84d68afe 100644
--- a/pkgs/development/python-modules/twentemilieu/default.nix
+++ b/pkgs/development/python-modules/twentemilieu/default.nix
@@ -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