about summary refs log tree commit diff
path: root/pkgs/development/python-modules/birch/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/development/python-modules/birch/default.nix')
-rw-r--r--pkgs/development/python-modules/birch/default.nix33
1 files changed, 13 insertions, 20 deletions
diff --git a/pkgs/development/python-modules/birch/default.nix b/pkgs/development/python-modules/birch/default.nix
index 56c95e415c319..772ab25109e4c 100644
--- a/pkgs/development/python-modules/birch/default.nix
+++ b/pkgs/development/python-modules/birch/default.nix
@@ -1,11 +1,13 @@
-{ lib
-, buildPythonPackage
-, fetchFromGitHub
-, fetchpatch
-, setuptools
-, strct
-, pytestCheckHook
-, pyyaml
+{
+  lib,
+  buildPythonPackage,
+  fetchFromGitHub,
+  fetchpatch,
+  setuptools,
+  strct,
+  pytestCheckHook,
+  pytest-cov-stub,
+  pyyaml,
 }:
 
 buildPythonPackage rec {
@@ -30,23 +32,14 @@ buildPythonPackage rec {
   ];
 
   postPatch = ''
-    substituteInPlace pytest.ini \
-      --replace-fail  \
-        "--cov" \
-        "#--cov"
-
     # configure correct version, which fails due to missing .git
     substituteInPlace versioneer.py birch/_version.py \
       --replace-fail '"0+unknown"' '"${version}"'
   '';
 
-  nativeBuildInputs = [
-    setuptools
-  ];
+  nativeBuildInputs = [ setuptools ];
 
-  dependencies = [
-    strct
-  ];
+  dependencies = [ strct ];
 
   pythonImportsCheck = [
     "birch"
@@ -57,6 +50,7 @@ buildPythonPackage rec {
 
   nativeCheckInputs = [
     pytestCheckHook
+    pytest-cov-stub
     pyyaml
   ];
 
@@ -64,7 +58,6 @@ buildPythonPackage rec {
     export HOME="$(mktemp -d)"
   '';
 
-
   meta = with lib; {
     description = "Simple hierarchical configuration for Python packages";
     homepage = "https://github.com/shaypal5/birch";