1{ lib 2, stdenv 3, attrs 4, beautifulsoup4 5, buildPythonPackage 6, click 7, fetchPypi 8, intbitset 9, pytest-xdist 10, pytestCheckHook 11, pythonOlder 12, requests 13, saneyaml 14, setuptools-scm 15, text-unidecode 16, typing 17}: 18 19buildPythonPackage rec { 20 pname = "commoncode"; 21 version = "30.0.0"; 22 23 disabled = pythonOlder "3.6"; 24 25 src = fetchPypi { 26 inherit pname version; 27 sha256 = "sha256-6SeU4u6pfDuGCgCYAO5fdbWBxW9XN3WvM8j6DwUlFwM="; 28 }; 29 30 dontConfigure = true; 31 32 nativeBuildInputs = [ 33 setuptools-scm 34 ]; 35 36 propagatedBuildInputs = [ 37 attrs 38 beautifulsoup4 39 click 40 intbitset 41 requests 42 saneyaml 43 text-unidecode 44 ] ++ lib.optionals (pythonOlder "3.7") [ 45 typing 46 ]; 47 48 checkInputs = [ 49 pytestCheckHook 50 pytest-xdist 51 ]; 52 disabledTests = lib.optionals stdenv.isDarwin [ 53 # expected result is tailored towards the quirks of upstream's 54 # CI environment on darwin 55 "test_searchable_paths" 56 ]; 57 58 pythonImportsCheck = [ 59 "commoncode" 60 ]; 61 62 meta = with lib; { 63 description = "A set of common utilities, originally split from ScanCode"; 64 homepage = "https://github.com/nexB/commoncode"; 65 license = licenses.asl20; 66 maintainers = teams.determinatesystems.members; 67 }; 68}