python310Packages.censys: 2.1.6 -> 2.1.6
This commit is contained in:
parent
a24431e56f
commit
f28e56011c
1 changed files with 16 additions and 8 deletions
|
@ -5,8 +5,10 @@
|
||||||
, importlib-metadata
|
, importlib-metadata
|
||||||
, parameterized
|
, parameterized
|
||||||
, poetry-core
|
, poetry-core
|
||||||
|
, pytest-mock
|
||||||
, pytestCheckHook
|
, pytestCheckHook
|
||||||
, pythonOlder
|
, pythonOlder
|
||||||
|
, pythonRelaxDepsHook
|
||||||
, requests
|
, requests
|
||||||
, requests-mock
|
, requests-mock
|
||||||
, responses
|
, responses
|
||||||
|
@ -15,20 +17,21 @@
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "censys";
|
pname = "censys";
|
||||||
version = "2.1.3";
|
version = "2.1.6";
|
||||||
format = "pyproject";
|
format = "pyproject";
|
||||||
|
|
||||||
disabled = pythonOlder "3.6";
|
disabled = pythonOlder "3.7";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "censys";
|
owner = "censys";
|
||||||
repo = "censys-python";
|
repo = "censys-python";
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
sha256 = "sha256-Zv3ViOrdQby+7UQrHy6174W2qh1vx21R0yOA7ecr0lU=";
|
hash = "sha256-jCQWjGx35erhkj1gjBjdGytvKNarrTODH6fJpFMQqLE=";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
poetry-core
|
poetry-core
|
||||||
|
pythonRelaxDepsHook
|
||||||
];
|
];
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
propagatedBuildInputs = [
|
||||||
|
@ -40,16 +43,19 @@ buildPythonPackage rec {
|
||||||
|
|
||||||
checkInputs = [
|
checkInputs = [
|
||||||
parameterized
|
parameterized
|
||||||
|
pytest-mock
|
||||||
pytestCheckHook
|
pytestCheckHook
|
||||||
requests-mock
|
requests-mock
|
||||||
responses
|
responses
|
||||||
];
|
];
|
||||||
|
|
||||||
|
pythonRelaxDeps = [
|
||||||
|
"backoff"
|
||||||
|
"requests"
|
||||||
|
"rich"
|
||||||
|
];
|
||||||
|
|
||||||
postPatch = ''
|
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 \
|
substituteInPlace pytest.ini \
|
||||||
--replace "--cov" ""
|
--replace "--cov" ""
|
||||||
'';
|
'';
|
||||||
|
@ -60,7 +66,9 @@ buildPythonPackage rec {
|
||||||
mkdir -p $HOME
|
mkdir -p $HOME
|
||||||
'';
|
'';
|
||||||
|
|
||||||
pythonImportsCheck = [ "censys" ];
|
pythonImportsCheck = [
|
||||||
|
"censys"
|
||||||
|
];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Python API wrapper for the Censys Search Engine (censys.io)";
|
description = "Python API wrapper for the Censys Search Engine (censys.io)";
|
||||||
|
|
Loading…
Reference in a new issue