Merge pull request #171635 from fabaff/scancode-toolkit-fix

python310Packages.scancode-toolkit: relax intbitset constraint
main
Fabian Affolter 2 years ago committed by GitHub
commit 9083f1a182
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 7
      pkgs/development/python-modules/intbitset/default.nix
  2. 5
      pkgs/development/python-modules/scancode-toolkit/default.nix

@ -2,6 +2,7 @@
, fetchPypi , fetchPypi
, buildPythonPackage , buildPythonPackage
, pytestCheckHook , pytestCheckHook
, pythonOlder
}: }:
buildPythonPackage rec { buildPythonPackage rec {
@ -9,9 +10,11 @@ buildPythonPackage rec {
version = "3.0.1"; version = "3.0.1";
format = "setuptools"; format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version;
sha256 = "sha256-8ebQPGcpkioiPFGEnfZbnpFuYlrvuRF4Tn+azUwgfVM="; hash = "sha256-8ebQPGcpkioiPFGEnfZbnpFuYlrvuRF4Tn+azUwgfVM=";
}; };
checkInputs = [ checkInputs = [
@ -25,7 +28,7 @@ buildPythonPackage rec {
meta = with lib; { meta = with lib; {
description = "C-based extension implementing fast integer bit sets"; description = "C-based extension implementing fast integer bit sets";
homepage = "https://github.com/inveniosoftware/intbitset"; homepage = "https://github.com/inveniosoftware/intbitset";
license = licenses.lgpl3Only; license = licenses.lgpl3Plus;
maintainers = teams.determinatesystems.members; maintainers = teams.determinatesystems.members;
}; };
} }

@ -64,7 +64,7 @@ buildPythonPackage rec {
src = fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version;
sha256 = "sha256-UYQf+cBi2FmyZxIbQJo7vLjPuoePIMC8FugvoG1Ebj0="; hash = "sha256-UYQf+cBi2FmyZxIbQJo7vLjPuoePIMC8FugvoG1Ebj0=";
}; };
dontConfigure = true; dontConfigure = true;
@ -134,7 +134,8 @@ buildPythonPackage rec {
--replace "pdfminer.six >= 20200101" "pdfminer.six" \ --replace "pdfminer.six >= 20200101" "pdfminer.six" \
--replace "pluggy >= 0.12.0, < 1.0" "pluggy" \ --replace "pluggy >= 0.12.0, < 1.0" "pluggy" \
--replace "pygmars >= 0.7.0" "pygmars" \ --replace "pygmars >= 0.7.0" "pygmars" \
--replace "license_expression >= 21.6.14" "license_expression" --replace "license_expression >= 21.6.14" "license_expression" \
--replace "intbitset >= 2.3.0, < 3.0" "intbitset"
''; '';
# Importing scancode needs a writeable home, and preCheck happens in between # Importing scancode needs a writeable home, and preCheck happens in between

Loading…
Cancel
Save