python313Packages.censys: refactor
This commit is contained in:
@@ -15,6 +15,7 @@
|
||||
requests-mock,
|
||||
responses,
|
||||
rich,
|
||||
writableTmpDirAsHomeHook,
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
@@ -22,7 +23,7 @@ buildPythonPackage rec {
|
||||
version = "2.2.18";
|
||||
pyproject = true;
|
||||
|
||||
disabled = pythonOlder "3.7";
|
||||
disabled = pythonOlder "3.8";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "censys";
|
||||
@@ -48,17 +49,11 @@ buildPythonPackage rec {
|
||||
pytestCheckHook
|
||||
requests-mock
|
||||
responses
|
||||
];
|
||||
|
||||
pythonRelaxDeps = [
|
||||
"backoff"
|
||||
"requests"
|
||||
"rich"
|
||||
writableTmpDirAsHomeHook
|
||||
];
|
||||
|
||||
# The tests want to write a configuration file
|
||||
preCheck = ''
|
||||
export HOME=$(mktemp -d)
|
||||
mkdir -p $HOME
|
||||
'';
|
||||
|
||||
@@ -67,8 +62,8 @@ buildPythonPackage rec {
|
||||
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 ];
|
||||
changelog = "https://github.com/censys/censys-python/releases/tag/v${src.tag}";
|
||||
license = licenses.asl20;
|
||||
maintainers = with maintainers; [ fab ];
|
||||
mainProgram = "censys";
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user