summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/commoncode/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/development/python-modules/commoncode/default.nix')
-rw-r--r--pkgs/development/python-modules/commoncode/default.nix67
1 files changed, 33 insertions, 34 deletions
diff --git a/pkgs/development/python-modules/commoncode/default.nix b/pkgs/development/python-modules/commoncode/default.nix
index 98c6492194c2..aa9203af4ba8 100644
--- a/pkgs/development/python-modules/commoncode/default.nix
+++ b/pkgs/development/python-modules/commoncode/default.nix
@@ -1,18 +1,19 @@
-{ lib
-, stdenv
-, attrs
-, beautifulsoup4
-, buildPythonPackage
-, click
-, fetchPypi
-, pytest-xdist
-, pytestCheckHook
-, pythonAtLeast
-, pythonOlder
-, requests
-, saneyaml
-, setuptools-scm
-, text-unidecode
+{
+ lib,
+ stdenv,
+ attrs,
+ beautifulsoup4,
+ buildPythonPackage,
+ click,
+ fetchPypi,
+ pytest-xdist,
+ pytestCheckHook,
+ pythonAtLeast,
+ pythonOlder,
+ requests,
+ saneyaml,
+ setuptools-scm,
+ text-unidecode,
}:
buildPythonPackage rec {
@@ -29,9 +30,7 @@ buildPythonPackage rec {
dontConfigure = true;
- nativeBuildInputs = [
- setuptools-scm
- ];
+ nativeBuildInputs = [ setuptools-scm ];
propagatedBuildInputs = [
attrs
@@ -47,28 +46,28 @@ buildPythonPackage rec {
pytest-xdist
];
- disabledTests = [
- # chinese character translates different into latin
- "test_safe_path_posix_style_chinese_char"
- # OSError: [Errno 84] Invalid or incomplete multibyte or wide character
- "test_os_walk_can_walk_non_utf8_path_from_unicode_path"
- "test_resource_iter_can_walk_non_utf8_path_from_unicode_path"
- "test_walk_can_walk_non_utf8_path_from_unicode_path"
- "test_resource_iter_can_walk_non_utf8_path_from_unicode_path_with_dirs"
- ] ++ lib.optionals stdenv.isDarwin [
- # expected result is tailored towards the quirks of upstream's
- # CI environment on darwin
- "test_searchable_paths"
- ];
+ disabledTests =
+ [
+ # chinese character translates different into latin
+ "test_safe_path_posix_style_chinese_char"
+ # OSError: [Errno 84] Invalid or incomplete multibyte or wide character
+ "test_os_walk_can_walk_non_utf8_path_from_unicode_path"
+ "test_resource_iter_can_walk_non_utf8_path_from_unicode_path"
+ "test_walk_can_walk_non_utf8_path_from_unicode_path"
+ "test_resource_iter_can_walk_non_utf8_path_from_unicode_path_with_dirs"
+ ]
+ ++ lib.optionals stdenv.isDarwin [
+ # expected result is tailored towards the quirks of upstream's
+ # CI environment on darwin
+ "test_searchable_paths"
+ ];
disabledTestPaths = lib.optionals (pythonAtLeast "3.10") [
# https://github.com/nexB/commoncode/issues/36
"src/commoncode/fetch.py"
];
- pythonImportsCheck = [
- "commoncode"
- ];
+ pythonImportsCheck = [ "commoncode" ];
meta = with lib; {
description = "A set of common utilities, originally split from ScanCode";