python310Packages.censys: 2.1.6 -> 2.1.6

This commit is contained in:
Fabian Affolter 2022-06-25 12:42:27 +02:00
parent a24431e56f
commit f28e56011c

View file

@ -5,8 +5,10 @@
, importlib-metadata
, parameterized
, poetry-core
, pytest-mock
, pytestCheckHook
, pythonOlder
, pythonRelaxDepsHook
, requests
, requests-mock
, responses
@ -15,20 +17,21 @@
buildPythonPackage rec {
pname = "censys";
version = "2.1.3";
version = "2.1.6";
format = "pyproject";
disabled = pythonOlder "3.6";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "censys";
repo = "censys-python";
rev = "v${version}";
sha256 = "sha256-Zv3ViOrdQby+7UQrHy6174W2qh1vx21R0yOA7ecr0lU=";
hash = "sha256-jCQWjGx35erhkj1gjBjdGytvKNarrTODH6fJpFMQqLE=";
};
nativeBuildInputs = [
poetry-core
pythonRelaxDepsHook
];
propagatedBuildInputs = [
@ -40,16 +43,19 @@ buildPythonPackage rec {
checkInputs = [
parameterized
pytest-mock
pytestCheckHook
requests-mock
responses
];
pythonRelaxDeps = [
"backoff"
"requests"
"rich"
];
postPatch = ''
substituteInPlace pyproject.toml \
--replace 'backoff = "^1.11.1"' 'backoff = "*"' \
--replace 'requests = ">=2.26.0"' 'requests = "*"' \
--replace 'rich = "^10.16.2"' 'rich = "*"'
substituteInPlace pytest.ini \
--replace "--cov" ""
'';
@ -60,7 +66,9 @@ buildPythonPackage rec {
mkdir -p $HOME
'';
pythonImportsCheck = [ "censys" ];
pythonImportsCheck = [
"censys"
];
meta = with lib; {
description = "Python API wrapper for the Censys Search Engine (censys.io)";