nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
fork

Configure Feed

Select the types of activity you want to include in your feed.

Merge pull request #233068 from rhendric/rhendric/python3Packages.scancode-toolkit

python3Packages.scancode-toolkit: fix build

authored by

Robert Scott and committed by
GitHub
38806da7 c0463bbb

+14 -3
+14 -3
pkgs/development/python-modules/scancode-toolkit/default.nix
··· 16 16 , extractcode-libarchive 17 17 , fasteners 18 18 , fetchPypi 19 + , fetchpatch 19 20 , fingerprints 20 21 , ftfy 21 - , gemfileparser 22 + , gemfileparser2 22 23 , html5lib 23 24 , importlib-metadata 24 25 , intbitset ··· 90 89 fasteners 91 90 fingerprints 92 91 ftfy 93 - gemfileparser 92 + gemfileparser2 94 93 html5lib 95 94 importlib-metadata 96 95 intbitset ··· 134 133 pytestCheckHook 135 134 ]; 136 135 136 + patches = [ 137 + (fetchpatch { 138 + name = "${pname}-allow-stable-spdx-tools.patch"; 139 + url = "https://github.com/nexB/scancode-toolkit/commit/d89ab6584d3df6b7eb1d1394559e9d967d6db6ae.patch"; 140 + includes = [ "src/*" ]; 141 + hash = "sha256-AU3vJlOxmCy3yvkupVaAVxAKxJI3ymXEk+A5DWSkfOM="; 142 + }) 143 + ]; 144 + 137 145 postPatch = '' 138 146 substituteInPlace setup.cfg \ 139 147 --replace "pdfminer.six >= 20200101" "pdfminer.six" \ 140 148 --replace "pluggy >= 0.12.0, < 1.0" "pluggy" \ 141 149 --replace "pygmars >= 0.7.0" "pygmars" \ 142 150 --replace "license_expression >= 21.6.14" "license_expression" \ 143 - --replace "intbitset >= 2.3.0, < 3.0" "intbitset" 151 + --replace "intbitset >= 2.3.0, < 3.0" "intbitset" \ 152 + --replace "spdx_tools == 0.7.0a3" "spdx_tools" 144 153 ''; 145 154 146 155 # Importing scancode needs a writeable home, and preCheck happens in between