python313Packages.censys: refactor

Changed files
+5 -10
pkgs
development
python-modules
censys
+5 -10
pkgs/development/python-modules/censys/default.nix
···
requests-mock,
responses,
rich,
+
writableTmpDirAsHomeHook,
}:
buildPythonPackage rec {
···
version = "2.2.18";
pyproject = true;
-
disabled = pythonOlder "3.7";
+
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "censys";
···
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
'';
···
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";
};