summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules
diff options
context:
space:
mode:
authorFabian Affolter <mail@fabian-affolter.ch>2021-11-30 23:51:05 +0100
committerJonathan Ringer <jonringer117@gmail.com>2021-11-30 18:53:01 -0800
commit2711b62a095bde2754c7559e184f8b9ef93b88c5 (patch)
treeac9b5003d60f26a8aad4e8d5e758d9d0f0ed3520 /pkgs/development/python-modules
parentpython3Packages.google-cloud-bigquery: disable failing tests (diff)
downloadnixpkgs-2711b62a095bde2754c7559e184f8b9ef93b88c5.tar.gz
python3Packages.doc8: fix build and enable tests
Diffstat (limited to 'pkgs/development/python-modules')
-rw-r--r--pkgs/development/python-modules/doc8/default.nix35
1 files changed, 24 insertions, 11 deletions
diff --git a/pkgs/development/python-modules/doc8/default.nix b/pkgs/development/python-modules/doc8/default.nix
index b8b040feb8af..dbfb857614e1 100644
--- a/pkgs/development/python-modules/doc8/default.nix
+++ b/pkgs/development/python-modules/doc8/default.nix
@@ -1,39 +1,52 @@
{ lib
, buildPythonPackage
+, chardet
+, docutils
, fetchPypi
, pbr
-, docutils
-, six
-, chardet
-, stevedore
-, restructuredtext_lint
, pygments
+, pytestCheckHook
+, pythonOlder
+, restructuredtext_lint
+, stevedore
}:
buildPythonPackage rec {
pname = "doc8";
version = "0.10.1";
+ format = "pyproject";
+
+ disabled = pythonOlder "3.6";
src = fetchPypi {
inherit pname version;
sha256 = "376e50f4e70a1ae935416ddfcf93db35dd5d4cc0e557f2ec72f0667d0ace4548";
};
- buildInputs = [ pbr ];
+ buildInputs = [
+ pbr
+ ];
+
propagatedBuildInputs = [
docutils
- six
chardet
stevedore
restructuredtext_lint
pygments
];
- doCheck = false;
+ checkInputs = [
+ pytestCheckHook
+ ];
+
+ pythonImportsCheck = [
+ "doc8"
+ ];
- meta = {
+ meta = with lib; {
description = "Style checker for Sphinx (or other) RST documentation";
- homepage = "https://launchpad.net/doc8";
- license = lib.licenses.asl20;
+ homepage = "https://github.com/pycqa/doc8";
+ license = licenses.asl20;
+ maintainers = with maintainers; [ ];
};
}