diff --git a/pkgs/development/python-modules/container-inspector/default.nix b/pkgs/development/python-modules/container-inspector/default.nix index d8acd1160a80..9d4f67ca8302 100644 --- a/pkgs/development/python-modules/container-inspector/default.nix +++ b/pkgs/development/python-modules/container-inspector/default.nix @@ -24,6 +24,8 @@ buildPythonPackage rec { hash = "sha256-YwtyNZsTMb8iFXo/rojvjkKUbMNRCXVamzFykpwYCOk="; }; + SETUPTOOLS_SCM_PRETEND_VERSION = version; + dontConfigure = true; nativeBuildInputs = [ diff --git a/pkgs/development/python-modules/debian-inspector/default.nix b/pkgs/development/python-modules/debian-inspector/default.nix index 0da7f634d848..1c8cee1d7186 100644 --- a/pkgs/development/python-modules/debian-inspector/default.nix +++ b/pkgs/development/python-modules/debian-inspector/default.nix @@ -6,24 +6,30 @@ , commoncode , pytestCheckHook , setuptools-scm +, pythonOlder }: buildPythonPackage rec { pname = "debian-inspector"; version = "30.0.0"; + format = "setuptools"; + + disabled = pythonOlder "3.6"; src = fetchPypi { pname = "debian_inspector"; inherit version; - sha256 = "sha256-0PT5sT6adaqgYQtWjks12ys0z1C3n116aeJaEKR/Wxg="; + hash = "sha256-0PT5sT6adaqgYQtWjks12ys0z1C3n116aeJaEKR/Wxg="; }; + SETUPTOOLS_SCM_PRETEND_VERSION = version; + + dontConfigure = true; + nativeBuildInputs = [ setuptools-scm ]; - dontConfigure = true; - propagatedBuildInputs = [ chardet attrs diff --git a/pkgs/development/python-modules/license-expression/default.nix b/pkgs/development/python-modules/license-expression/default.nix index c6f2c678ba99..e1f77e45dcc7 100644 --- a/pkgs/development/python-modules/license-expression/default.nix +++ b/pkgs/development/python-modules/license-expression/default.nix @@ -20,6 +20,8 @@ buildPythonPackage rec { hash = "sha256-tGXNZm9xH8sXa7dtBFsTzGgT+hfbmkwps7breR7KUWU="; }; + SETUPTOOLS_SCM_PRETEND_VERSION = version; + dontConfigure = true; nativeBuildInputs = [ diff --git a/pkgs/development/python-modules/parameter-expansion-patched/default.nix b/pkgs/development/python-modules/parameter-expansion-patched/default.nix index 18511e1c70fd..4f2c5eaf6094 100644 --- a/pkgs/development/python-modules/parameter-expansion-patched/default.nix +++ b/pkgs/development/python-modules/parameter-expansion-patched/default.nix @@ -3,19 +3,27 @@ , fetchPypi , pytestCheckHook , pythonOlder +, setuptools-scm }: buildPythonPackage rec { pname = "parameter-expansion-patched"; - version = "0.2.1b4"; + version = "0.3.1"; + format = "setuptools"; - disabled = pythonOlder "3.6"; + disabled = pythonOlder "3.7"; src = fetchPypi { inherit pname version; - sha256 = "1vhshscjifi78qapzwn29gln6p8jhyc7cccszl8ai2jamhcph5zs"; + hash = "sha256-/128ifveWC8zNlYtGWtxB3HpK6p7bVk1ahSwhaC2dAs="; }; + SETUPTOOLS_SCM_PRETEND_VERSION = version; + + nativeBuildInputs = [ + setuptools-scm + ]; + checkInputs = [ pytestCheckHook ]; @@ -26,7 +34,7 @@ buildPythonPackage rec { meta = with lib; { description = "POSIX parameter expansion in Python"; - homepage = "https://github.com/nexB/commoncode"; + homepage = "https://github.com/nexB/parameter_expansion_patched"; license = licenses.asl20; maintainers = with maintainers; [ fab ]; }; diff --git a/pkgs/development/python-modules/pip-requirements-parser/default.nix b/pkgs/development/python-modules/pip-requirements-parser/default.nix index d4246d302a27..0693fbf4fde8 100644 --- a/pkgs/development/python-modules/pip-requirements-parser/default.nix +++ b/pkgs/development/python-modules/pip-requirements-parser/default.nix @@ -21,6 +21,8 @@ buildPythonPackage rec { hash = "sha256-i4hw3tS4i2ek2JzcDiGo5aFFJ9J2JJ9MB5vxDhOilb0="; }; + SETUPTOOLS_SCM_PRETEND_VERSION = version; + dontConfigure = true; nativeBuildInputs = [ diff --git a/pkgs/development/python-modules/plugincode/default.nix b/pkgs/development/python-modules/plugincode/default.nix index 7270685f41b1..2e54d5604e19 100644 --- a/pkgs/development/python-modules/plugincode/default.nix +++ b/pkgs/development/python-modules/plugincode/default.nix @@ -7,14 +7,19 @@ , pluggy , pytestCheckHook , pytest-xdist +, pythonOlder }: + buildPythonPackage rec { pname = "plugincode"; - version = "21.1.21"; + version = "30.0.0"; + format = "setuptools"; + + disabled = pythonOlder "3.7"; src = fetchPypi { inherit pname version; - sha256 = "97b5a2c96f0365c80240be103ecd86411c68b11a16f137913cbea9129c54907a"; + hash = "sha256-QjcQCvhlaBzcbBB8MIhbsx4cRy7XkdvUcmG7rM48Sos="; }; dontConfigure = true; @@ -38,8 +43,13 @@ buildPythonPackage rec { "plugincode" ]; + disabledTests = [ + # We don't want black as an input + "test_skeleton_codestyle" + ]; + meta = with lib; { - description = "A library that provides plugin functionality for ScanCode toolkit"; + description = "Library that provides plugin functionality for ScanCode toolkit"; homepage = "https://github.com/nexB/plugincode"; license = licenses.asl20; maintainers = teams.determinatesystems.members; diff --git a/pkgs/development/python-modules/pyahocorasick/default.nix b/pkgs/development/python-modules/pyahocorasick/default.nix index 336e637edef0..fd2c6de2c25c 100644 --- a/pkgs/development/python-modules/pyahocorasick/default.nix +++ b/pkgs/development/python-modules/pyahocorasick/default.nix @@ -8,7 +8,7 @@ buildPythonPackage rec { pname = "pyahocorasick"; - version = "1.4.4"; + version = "2.0.0b1"; format = "setuptools"; disabled = pythonOlder "3.7"; @@ -17,17 +17,13 @@ buildPythonPackage rec { owner = "WojciechMula"; repo = pname; rev = version; - hash = "sha256-X6ifwOwf7GAaNUxInKhR3NX6hKhvFMkvfbK6XpH8CBo="; + hash = "sha256-APpL99kOwzIQjePvRDeJ0FDm1kjBi6083JMKuBqtaRk="; }; checkInputs = [ pytestCheckHook ]; - pytestFlagsArray = [ - "unittests.py" - ]; - pythonImportsCheck = [ "ahocorasick" ]; diff --git a/pkgs/development/python-modules/scancode-toolkit/default.nix b/pkgs/development/python-modules/scancode-toolkit/default.nix index 2c12019e9ac7..40c52962e51d 100644 --- a/pkgs/development/python-modules/scancode-toolkit/default.nix +++ b/pkgs/development/python-modules/scancode-toolkit/default.nix @@ -8,8 +8,9 @@ , click , colorama , commoncode +, container-inspector , debian-inspector -, dparse +, dparse2 , extractcode , extractcode-7z , extractcode-libarchive @@ -32,7 +33,8 @@ , packaging , parameter-expansion-patched , pefile -, pkginfo +, pip-requirements-parser +, pkginfo2 , pluggy , plugincode , publicsuffix2 @@ -58,13 +60,13 @@ buildPythonPackage rec { pname = "scancode-toolkit"; - version = "30.1.0"; + version = "31.0.0b4"; disabled = pythonOlder "3.6"; src = fetchPypi { inherit pname version; - hash = "sha256-UYQf+cBi2FmyZxIbQJo7vLjPuoePIMC8FugvoG1Ebj0="; + hash = "sha256-sPFHaIbbWw/wk3Q1PBDj5O4il9ntigoyanecg938a9A="; }; dontConfigure = true; @@ -78,8 +80,9 @@ buildPythonPackage rec { click colorama commoncode + container-inspector debian-inspector - dparse + dparse2 extractcode extractcode-7z extractcode-libarchive @@ -88,6 +91,7 @@ buildPythonPackage rec { ftfy gemfileparser html5lib + importlib-metadata intbitset jaraco_functools javaproperties @@ -100,7 +104,8 @@ buildPythonPackage rec { packaging parameter-expansion-patched pefile - pkginfo + pip-requirements-parser + pkginfo2 pluggy plugincode publicsuffix2 @@ -118,9 +123,8 @@ buildPythonPackage rec { typecode-libmagic urlpy xmltodict - zipp ] ++ lib.optionals (pythonOlder "3.9") [ - importlib-metadata + zipp ] ++ lib.optionals (pythonOlder "3.7") [ typing ]; diff --git a/pkgs/development/python-modules/typecode/default.nix b/pkgs/development/python-modules/typecode/default.nix index 16ee927e849b..7b3a01a53a8a 100644 --- a/pkgs/development/python-modules/typecode/default.nix +++ b/pkgs/development/python-modules/typecode/default.nix @@ -10,16 +10,19 @@ , typecode-libmagic , pytestCheckHook , pytest-xdist +, pythonOlder }: buildPythonPackage rec { pname = "typecode"; - version = "21.6.1"; + version = "30.0.0"; format = "setuptools"; + disabled = pythonOlder "3.7"; + src = fetchPypi { inherit pname version; - sha256 = "d3a82859df5607c900972e08e1bca31e3fe2daed37afd1b8231cad2ef613d8d6"; + hash = "sha256-pRGLU/xzQQqDZMIsrq1Fy7VgGIpFjnHtpmO+yL7t4g8="; }; dontConfigure = true;