nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 73 lines 1.7 kB view raw
1{ 2 lib, 3 stdenv, 4 attrs, 5 beautifulsoup4, 6 buildPythonPackage, 7 click, 8 fetchFromGitHub, 9 pytest-xdist, 10 pytestCheckHook, 11 requests, 12 saneyaml, 13 setuptools-scm, 14 text-unidecode, 15}: 16 17buildPythonPackage (finalAttrs: { 18 pname = "commoncode"; 19 version = "32.4.2"; 20 pyproject = true; 21 22 src = fetchFromGitHub { 23 owner = "nexB"; 24 repo = "commoncode"; 25 tag = "v${finalAttrs.version}"; 26 hash = "sha256-A2FE+qhLQahuAtptP3hCnIUgh7j61Wf02avO6DM0b5E="; 27 }; 28 29 dontConfigure = true; 30 31 build-system = [ setuptools-scm ]; 32 33 pythonRelaxDeps = [ "beautifulsoup4" ]; 34 35 dependencies = [ 36 attrs 37 beautifulsoup4 38 click 39 requests 40 saneyaml 41 text-unidecode 42 ]; 43 44 nativeCheckInputs = [ 45 pytestCheckHook 46 pytest-xdist 47 ]; 48 49 disabledTests = [ 50 # chinese character translates different into latin 51 "test_safe_path_posix_style_chinese_char" 52 # OSError: [Errno 84] Invalid or incomplete multibyte or wide character 53 "test_os_walk_can_walk_non_utf8_path_from_unicode_path" 54 "test_resource_iter_can_walk_non_utf8_path_from_unicode_path" 55 "test_walk_can_walk_non_utf8_path_from_unicode_path" 56 "test_resource_iter_can_walk_non_utf8_path_from_unicode_path_with_dirs" 57 ] 58 ++ lib.optionals stdenv.hostPlatform.isDarwin [ 59 # expected result is tailored towards the quirks of upstream's 60 # CI environment on darwin 61 "test_searchable_paths" 62 ]; 63 64 pythonImportsCheck = [ "commoncode" ]; 65 66 meta = { 67 description = "Set of common utilities, originally split from ScanCode"; 68 homepage = "https://github.com/nexB/commoncode"; 69 changelog = "https://github.com/nexB/commoncode/blob/${finalAttrs.src.tag}/CHANGELOG.rst"; 70 license = lib.licenses.asl20; 71 maintainers = [ ]; 72 }; 73})