summary refs log tree commit diff
path: root/pkgs/development/python-modules/ansi2html
diff options
context:
space:
mode:
authorJonathan Ringer <jonringer117@gmail.com>2020-11-29 09:50:38 -0800
committerFrederik Rietdijk <fridh@fridh.nl>2020-12-01 14:44:23 +0100
commit33f5ff0189f070f68876807a1882957f044d23ae (patch)
tree6e8223d869c7d0e48c22526d0013a981f6460865 /pkgs/development/python-modules/ansi2html
parent22e2c11cba1d0131cd6c11ecc07afd0043aeac4c (diff)
downloadnixpkgs-33f5ff0189f070f68876807a1882957f044d23ae.tar
nixpkgs-33f5ff0189f070f68876807a1882957f044d23ae.tar.gz
nixpkgs-33f5ff0189f070f68876807a1882957f044d23ae.tar.bz2
nixpkgs-33f5ff0189f070f68876807a1882957f044d23ae.tar.lz
nixpkgs-33f5ff0189f070f68876807a1882957f044d23ae.tar.xz
nixpkgs-33f5ff0189f070f68876807a1882957f044d23ae.tar.zst
nixpkgs-33f5ff0189f070f68876807a1882957f044d23ae.zip
python3Packages.ansi2html: fix build and tests
Diffstat (limited to 'pkgs/development/python-modules/ansi2html')
-rw-r--r--pkgs/development/python-modules/ansi2html/default.nix8
1 files changed, 6 insertions, 2 deletions
diff --git a/pkgs/development/python-modules/ansi2html/default.nix b/pkgs/development/python-modules/ansi2html/default.nix
index 5387e93be6c..76775acb163 100644
--- a/pkgs/development/python-modules/ansi2html/default.nix
+++ b/pkgs/development/python-modules/ansi2html/default.nix
@@ -1,4 +1,4 @@
-{ lib, buildPythonPackage, fetchPypi, isPy3k, six, mock, nose, setuptools }:
+{ lib, buildPythonPackage, fetchPypi, isPy3k, six, mock, pytestCheckHook, setuptools, setuptools_scm, toml }:
 
 buildPythonPackage rec {
   pname = "ansi2html";
@@ -9,9 +9,13 @@ buildPythonPackage rec {
     sha256 = "0f124ea7efcf3f24f1f9398e527e688c9ae6eab26b0b84e1299ef7f94d92c596";
   };
 
+  nativeBuildInputs = [ setuptools_scm toml ];
   propagatedBuildInputs = [ six setuptools ];
 
-  checkInputs = [ mock nose ];
+  preCheck = "export PATH=$PATH:$out/bin";
+  checkInputs = [ mock pytestCheckHook ];
+
+  pythonImportsCheck = [ "ansi2html" ];
 
   meta = with lib; {
     description = "Convert text with ANSI color codes to HTML";