git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #141089 from fabaff/bump-commoncode

python3Packages.scancode-toolkit: 21.8.4 -> 30.1.0

commit5a8952d29741d4681a6b32439b21799c74ae541d authorFabian Affolter <fabian@affolter-engineering.ch> dateSun 10 Oct 2021, 16:40 (5 years ago) parentd002e84e531a5a
9 files changed+244−108
pkgs/development/python-modules/commoncode/default.nix+19−12 pkgs/development/python-modules/debian-inspector/default.nix+2−2 pkgs/development/python-modules/extractcode/default.nix+4−2 pkgs/development/python-modules/license-expression/default.nix+27−7 pkgs/development/python-modules/parameter-expansion-patched/default.nix+33 pkgs/development/python-modules/pygmars/default.nix+42 pkgs/development/python-modules/scancode-toolkit/default.nix+104−68 pkgs/development/python-modules/spdx-tools/default.nix+9−17 pkgs/top-level/python-packages.nix+4
pkgs/development/python-modules/commoncode/default.nix+19−12
@@ -1,24 +1,29 @@
11{ lib
2−, fetchPypi
2+, attrs
3+, beautifulsoup4
34, buildPythonPackage
4−, setuptools-scm
55, click
6−, requests
7−, attrs
6+, fetchPypi
87, intbitset
8+, pytest-xdist
9+, pytestCheckHook
10+, pythonOlder
11+, requests
912, saneyaml
13+, setuptools-scm
1014, text-unidecode
11−, beautifulsoup4
12−, pytestCheckHook
13−, pytest-xdist
15+, typing
1416}:
17+
1518buildPythonPackage rec {
1619 pname = "commoncode";
17− version = "21.8.31";
20+ version = "30.0.0";
21+
22+ disabled = pythonOlder "3.6";
1823
1924 src = fetchPypi {
2025 inherit pname version;
21− sha256 = "0e74c61226834393801e921ab125eae3b52361340278fb9a468c5c691d286c32";
26+ sha256 = "sha256-6SeU4u6pfDuGCgCYAO5fdbWBxW9XN3WvM8j6DwUlFwM=";
2227 };
2328
2429 dontConfigure = true;
@@ -28,13 +33,15 @@ buildPythonPackage rec {
2833 ];
2934
3035 propagatedBuildInputs = [
31− click
32− requests
3336 attrs
37+ beautifulsoup4
38+ click
3439 intbitset
40+ requests
3541 saneyaml
3642 text-unidecode
37− beautifulsoup4
43+ ] ++ lib.optionals (pythonOlder "3.7") [
44+ typing
3845 ];
3946
4047 checkInputs = [
pkgs/development/python-modules/debian-inspector/default.nix+2−2
@@ -11,12 +11,12 @@
1111
1212buildPythonPackage rec {
1313 pname = "debian-inspector";
14− version = "21.5.25";
14+ version = "30.0.0";
1515
1616 src = fetchPypi {
1717 pname = "debian_inspector";
1818 inherit version;
19− sha256 = "1d3xaqw00kav85nk29qm2yqb73bkyqf185fs1q0vgd7bnap9wqaw";
19+ sha256 = "sha256-0PT5sT6adaqgYQtWjks12ys0z1C3n116aeJaEKR/Wxg=";
2020 };
2121
2222 nativeBuildInputs = [
pkgs/development/python-modules/extractcode/default.nix+4−2
@@ -9,6 +9,7 @@
99, pytestCheckHook
1010, pytest-xdist
1111}:
12+
1213buildPythonPackage rec {
1314 pname = "extractcode";
1415 version = "21.7.23";
@@ -36,7 +37,7 @@ buildPythonPackage rec {
3637 pytest-xdist
3738 ];
3839
39− # cli test tests the cli which we can't do until after install
40+ # CLI test tests the cli which we can't do until after install
4041 disabledTestPaths = [
4142 "tests/test_extractcode_cli.py"
4243 ];
@@ -45,6 +46,7 @@ buildPythonPackage rec {
4546 disabledTests = [
4647 "test_uncompress_lz4_basic"
4748 "test_extract_tarlz4_basic"
49+ "test_extract_rar_with_trailing_data"
4850 # tries to parse /boot/vmlinuz-*, which is not available in the nix sandbox
4951 "test_can_extract_qcow2_vm_image_as_tarball"
5052 "test_can_extract_qcow2_vm_image_not_as_tarball"
@@ -56,7 +58,7 @@ buildPythonPackage rec {
5658 ];
5759
5860 meta = with lib; {
59− description = "A mostly universal archive extractor using z7zip, libarchve, other libraries and the Python standard library for reliable archive extraction";
61+ description = "Universal archive extractor using z7zip, libarchve, other libraries and the Python standard library";
6062 homepage = "https://github.com/nexB/extractcode";
6163 license = licenses.asl20;
6264 maintainers = teams.determinatesystems.members;
pkgs/development/python-modules/license-expression/default.nix+27−7
@@ -1,25 +1,45 @@
1−{ lib, buildPythonPackage, fetchFromGitHub
1+{ lib
22, boolean-py
3+, buildPythonPackage
4+, fetchFromGitHub
5+, pytestCheckHook
6+, pythonOlder
7+, setuptools-scm
38}:
49
510buildPythonPackage rec {
611 pname = "license-expression";
7− version = "1.2";
12+ version = "21.6.14";
13+
14+ disabled = pythonOlder "3.6";
815
916 src = fetchFromGitHub {
1017 owner = "nexB";
1118 repo = "license-expression";
1219 rev = "v${version}";
13− sha256 = "0bbd7d90z58p9sd01b00g0vfd9bmwzksjb7pc8833s2jpja9mxz1";
20+ sha256 = "sha256-hwfYKKalo8WYFwPCsRRXNz+/F8/42PXA8jxbIQjJH/g=";
1421 };
15− postPatch = "patchShebangs ./configure";
1622
17− propagatedBuildInputs = [ boolean-py ];
23+ dontConfigure = true;
24+
25+ nativeBuildInputs = [
26+ setuptools-scm
27+ ];
28+
29+ propagatedBuildInputs = [
30+ boolean-py
31+ ];
32+
33+ checkInputs = [
34+ pytestCheckHook
35+ ];
36+
37+ pythonImportsCheck = [ "license_expression" ];
1838
1939 meta = with lib; {
40+ description = "Utility library to parse, normalize and compare License expressions for Python";
2041 homepage = "https://github.com/nexB/license-expression";
21− description = "Utility library to parse, normalize and compare License expressions for Python using a boolean logic engine";
2242 license = licenses.asl20;
43+ maintainers = with maintainers; [ fab ];
2344 };
24−
2545}
pkgs/development/python-modules/parameter-expansion-patched/default.nixnew file+33
@@ -0,0 +1,33 @@
1+{ lib
2+, buildPythonPackage
3+, fetchPypi
4+, pytestCheckHook
5+, pythonOlder
6+}:
7+
8+buildPythonPackage rec {
9+ pname = "parameter-expansion-patched";
10+ version = "0.2.1b4";
11+
12+ disabled = pythonOlder "3.6";
13+
14+ src = fetchPypi {
15+ inherit pname version;
16+ sha256 = "1vhshscjifi78qapzwn29gln6p8jhyc7cccszl8ai2jamhcph5zs";
17+ };
18+
19+ checkInputs = [
20+ pytestCheckHook
21+ ];
22+
23+ pythonImportsCheck = [
24+ "parameter_expansion"
25+ ];
26+
27+ meta = with lib; {
28+ description = "POSIX parameter expansion in Python";
29+ homepage = "https://github.com/nexB/commoncode";
30+ license = licenses.asl20;
31+ maintainers = with maintainers; [ fab ];
32+ };
33+}
pkgs/development/python-modules/pygmars/default.nixnew file+42
@@ -0,0 +1,42 @@
1+{ lib
2+, buildPythonPackage
3+, fetchFromGitHub
4+, pytestCheckHook
5+, setuptools-scm
6+, pythonOlder
7+}:
8+
9+buildPythonPackage rec {
10+ pname = "pygmars";
11+ version = "0.7.0";
12+
13+ disabled = pythonOlder "3.6";
14+
15+ src = fetchFromGitHub {
16+ owner = "nexB";
17+ repo = pname;
18+ rev = "v${version}";
19+ sha256 = "0wghk4nzplpl26iwrgvm0n9x88nyxlcxz4ywss4nwdr4hfccl28l";
20+ };
21+
22+ dontConfigure = true;
23+
24+ nativeBuildInputs = [
25+ setuptools-scm
26+ ];
27+
28+ checkInputs = [
29+ pytestCheckHook
30+ ];
31+
32+ pythonImportsCheck = [
33+ "pygmars"
34+ ];
35+
36+ meta = with lib; {
37+ description = "Python lexing and parsing library";
38+ homepage = "https://github.com/nexB/pygmars";
39+ license = with licenses; [ asl20 ];
40+ maintainers = with maintainers; [ fab ];
41+ };
42+}
pkgs/development/python-modules/scancode-toolkit/default.nix+104−68
@@ -1,105 +1,141 @@
11{ lib
2−, fetchPypi
2+, attrs
3+, beautifulsoup4
4+, bitarray
5+, boolean-py
36, buildPythonPackage
4−, isPy3k
5−, markupsafe
7+, chardet
68, click
7−, typecode
8−, gemfileparser
9−, pefile
10−, fingerprints
11−, spdx-tools
12−, fasteners
13−, pycryptodome
14−, urlpy
15−, dparse
16−, jaraco_functools
17−, pkginfo
9+, colorama
10+, commoncode
1811, debian-inspector
12+, dparse
1913, extractcode
14+, extractcode-7z
15+, extractcode-libarchive
16+, fasteners
17+, fetchPypi
18+, fingerprints
2019, ftfy
21−, pyahocorasick
22−, colorama
20+, gemfileparser
21+, html5lib
22+, importlib-metadata
23+, intbitset
24+, jaraco_functools
25+, javaproperties
26+, jinja2
2327, jsonstreams
28+, license-expression
29+, lxml
30+, markupsafe
2431, packageurl-python
25−, pymaven-patch
26−, nltk
32+, packaging
33+, parameter-expansion-patched
34+, pefile
35+, pkginfo
36+, pluggy
37+, plugincode
38+, publicsuffix2
39+, pyahocorasick
40+, pycryptodome
41+, pygmars
2742, pygments
28−, bitarray
29−, jinja2
30−, javaproperties
31−, boolean-py
32−, license-expression
33−, extractcode-7z
34−, extractcode-libarchive
35−, typecode-libmagic
43+, pymaven-patch
3644, pytestCheckHook
45+, pythonOlder
46+, requests
47+, saneyaml
48+, spdx-tools
49+, text-unidecode
50+, toml
51+, typecode
52+, typecode-libmagic
53+, typing
54+, urlpy
55+, xmltodict
56+, zipp
3757}:
58+
3859buildPythonPackage rec {
3960 pname = "scancode-toolkit";
40− version = "21.8.4";
41− disabled = !isPy3k;
61+ version = "30.1.0";
62+
63+ disabled = pythonOlder "3.6";
4264
4365 src = fetchPypi {
4466 inherit pname version;
45− sha256 = "c18340067244274c67e166f701c60e747e1d0bccb17efc99f277a4bc0a5a13c6";
67+ sha256 = "sha256-UYQf+cBi2FmyZxIbQJo7vLjPuoePIMC8FugvoG1Ebj0=";
4668 };
4769
4870 dontConfigure = true;
4971
50− # https://github.com/nexB/scancode-toolkit/issues/2501
51− # * dparse2 is a "Temp fork for Python 2 support", but pdfminer requires
52− # Python 3, so it's "fine" to leave dparse2 unpackaged and use the "normal"
53− # version
54− # * ftfy was pinned for similar reasons (to support Python 2), but rather than
55− # packaging an older version, I figured it would be better to remove the
56− # erroneous (at least for our usage) version bound
57− # * bitarray's version bound appears to be unnecessary for similar reasons
58− postPatch = ''
59− substituteInPlace setup.cfg \
60− --replace "dparse2" "dparse" \
61− --replace "ftfy < 5.0.0" "ftfy" \
62− --replace "bitarray >= 0.8.1, < 1.0.0" "bitarray"
63− '';
64−
6572 propagatedBuildInputs = [
66− markupsafe
73+ attrs
74+ beautifulsoup4
75+ bitarray
76+ boolean-py
77+ chardet
6778 click
68− typecode
69− gemfileparser
70− pefile
71− fingerprints
72− spdx-tools
73− fasteners
74− pycryptodome
75− urlpy
76− dparse
77− jaraco_functools
78− pkginfo
79+ colorama
80+ commoncode
7981 debian-inspector
82+ dparse
8083 extractcode
84+ extractcode-7z
85+ extractcode-libarchive
86+ fasteners
87+ fingerprints
8188 ftfy
82− pyahocorasick
83− colorama
89+ gemfileparser
90+ html5lib
91+ intbitset
92+ jaraco_functools
93+ javaproperties
94+ jinja2
8495 jsonstreams
96+ license-expression
97+ lxml
98+ markupsafe
8599 packageurl-python
86− pymaven-patch
87− nltk
100+ packaging
101+ parameter-expansion-patched
102+ pefile
103+ pkginfo
104+ pluggy
105+ plugincode
106+ publicsuffix2
107+ pyahocorasick
108+ pycryptodome
109+ pygmars
88110 pygments
89− bitarray
90− jinja2
91− javaproperties
92− boolean-py
93− license-expression
94− extractcode-7z
95− extractcode-libarchive
111+ pymaven-patch
112+ requests
113+ saneyaml
114+ spdx-tools
115+ text-unidecode
116+ toml
117+ typecode
96118 typecode-libmagic
119+ urlpy
120+ xmltodict
121+ zipp
122+ ] ++ lib.optionals (pythonOlder "3.9") [
123+ importlib-metadata
124+ ] ++ lib.optionals (pythonOlder "3.7") [
125+ typing
97126 ];
98127
99128 checkInputs = [
100129 pytestCheckHook
101130 ];
102131
132+ postPatch = ''
133+ substituteInPlace setup.cfg \
134+ --replace "pluggy >= 0.12.0, < 1.0" "pluggy" \
135+ --replace "pygmars >= 0.7.0" "pygmars" \
136+ --replace "license_expression >= 21.6.14" "license_expression"
137+ '';
138+
103139 # Importing scancode needs a writeable home, and preCheck happens in between
104140 # pythonImportsCheckPhase and pytestCheckPhase.
105141 postInstall = ''
@@ -114,7 +150,7 @@ buildPythonPackage rec {
114150 dontStrip = true;
115151
116152 meta = with lib; {
117− description = "A tool to scan code for license, copyright, package and their documented dependencies and other interesting facts";
153+ description = "Tool to scan code for license, copyright, package and their documented dependencies and other interesting facts";
118154 homepage = "https://github.com/nexB/scancode-toolkit";
119155 license = with licenses; [ asl20 cc-by-40 ];
120156 maintainers = teams.determinatesystems.members;
pkgs/development/python-modules/spdx-tools/default.nix+9−17
@@ -1,39 +1,31 @@
11{ lib
22, buildPythonPackage
3+, click
34, fetchPypi
4−, fetchpatch
5−, six
65, pyyaml
76, rdflib
87, ply
98, xmltodict
109, pytestCheckHook
11−, pythonAtLeast
10+, pythonOlder
1211}:
12+
1313buildPythonPackage rec {
1414 pname = "spdx-tools";
15− version = "0.6.1";
15+ version = "0.7.0a3";
16+
17+ disabled = pythonOlder "3.6";
1618
1719 src = fetchPypi {
1820 inherit pname version;
19− sha256 = "9a1aaae051771e865705dd2fd374c3f73d0ad595c1056548466997551cbd7a81";
21+ sha256 = "sha256-afV1W1n5ubHhqfLFpPO5fxaIy5TaZdw9eDy3JYOJ1oE=";
2022 };
2123
22− patches = lib.optionals (pythonAtLeast "3.9") [
23− # https://github.com/spdx/tools-python/pull/159
24− # fixes tests on Python 3.9
25− (fetchpatch {
26− name = "drop-encoding-argument.patch";
27− url = "https://github.com/spdx/tools-python/commit/6c8b9a852f8a787122c0e2492126ee8aa52acff0.patch";
28− sha256 = "RhvLhexsQRjqYqJg10SAM53RsOW+R93G+mns8C9g5E8=";
29− })
30− ];
31−
3224 propagatedBuildInputs = [
33− six
25+ click
26+ ply
3427 pyyaml
3528 rdflib
36− ply
3729 xmltodict
3830 ];
3931
pkgs/top-level/python-packages.nix+4
@@ -5338,6 +5338,8 @@ in {
53385338
53395339 param = callPackage ../development/python-modules/param { };
53405340
5341+ parameter-expansion-patched = callPackage ../development/python-modules/parameter-expansion-patched { };
5342+
53415343 parameterized = callPackage ../development/python-modules/parameterized { };
53425344
53435345 paramiko = callPackage ../development/python-modules/paramiko { };
@@ -6324,6 +6326,8 @@ in {
63246326
63256327 pygls = callPackage ../development/python-modules/pygls { };
63266328
6329+ pygmars = callPackage ../development/python-modules/pygmars { };
6330+
63276331 pygments-better-html = callPackage ../development/python-modules/pygments-better-html { };
63286332
63296333 pygments = callPackage ../development/python-modules/Pygments { };