Merge pull request #230911 from fabaff/censys-bump

python310Packages.censys: 2.2.0 -> 2.2.2, python310Packages.argcomplete: 2.1.1 -> 3.1.1

Changed files
+21 -18
pkgs
development
python-modules
argcomplete
censys
+16 -16
pkgs/development/python-modules/argcomplete/default.nix
···
{ lib
, buildPythonPackage
-
, fetchPypi
-
, pexpect
+
, fetchFromGitHub
, pythonOlder
+
, setuptools
+
, setuptools-scm
}:
buildPythonPackage rec {
pname = "argcomplete";
-
version = "2.1.1";
-
format = "setuptools";
+
version = "3.1.1";
+
format = "pyproject";
-
disabled = pythonOlder "3.7";
+
disabled = pythonOlder "3.8";
-
src = fetchPypi {
-
inherit pname version;
-
hash = "sha256-cuCDQIUtMlREWcDBmq0bSKosOpbejG5XQkVrT1OMpS8=";
+
src = fetchFromGitHub {
+
owner = "kislyuk";
+
repo = pname;
+
rev = "refs/tags/v${version}";
+
hash = "sha256-N1Us/dpF/y638qIuwTzBiuv4vXfBMtWxmQnMBxNTUuc=";
};
-
postPatch = ''
-
substituteInPlace setup.py \
-
--replace '"coverage",' "" \
-
--replace " + lint_require" ""
-
'';
+
SETUPTOOLS_SCM_PRETEND_VERSION = version;
-
propagatedBuildInputs = [
-
pexpect
+
nativeBuildInputs = [
+
setuptools
+
setuptools-scm
];
-
# tries to build and install test packages which fails
+
# Tries to build and install test packages which fails
doCheck = false;
pythonImportsCheck = [
+5 -2
pkgs/development/python-modules/censys/default.nix
···
{ lib
+
, argcomplete
, backoff
, buildPythonPackage
, fetchFromGitHub
···
buildPythonPackage rec {
pname = "censys";
-
version = "2.2.0";
+
version = "2.2.4";
format = "pyproject";
disabled = pythonOlder "3.7";
···
owner = "censys";
repo = "censys-python";
rev = "refs/tags/v${version}";
-
hash = "sha256-CtW6EN9oH/OIZ4XaoSuKlMYK9Mh/ewRs6y34xbfY234=";
+
hash = "sha256-gCq01lfAoKoS74C8gjj84mZpXDMtdNVaRLwhlEXwiPI=";
};
nativeBuildInputs = [
···
];
propagatedBuildInputs = [
+
argcomplete
backoff
requests
rich
···
meta = with lib; {
description = "Python API wrapper for the Censys Search Engine (censys.io)";
homepage = "https://github.com/censys/censys-python";
+
changelog = "https://github.com/censys/censys-python/releases/tag/v${version}";
license = with licenses; [ asl20 ];
maintainers = with maintainers; [ fab ];
};