python312Packages.censys: refactor

This commit is contained in:
Fabian Affolter 2024-03-29 22:59:21 +01:00
parent 993486dfc1
commit 2119fb6f84

View File

@ -30,12 +30,17 @@ buildPythonPackage rec {
hash = "sha256-Gw3JbAdg/ObWdD6vl8Wuct6VCcP4GAZbiesXSSnW1Mg=";
};
nativeBuildInputs = [
postPatch = ''
substituteInPlace pytest.ini \
--replace-fail "--cov" ""
'';
build-system = [
poetry-core
pythonRelaxDepsHook
];
propagatedBuildInputs = [
dependencies = [
argcomplete
backoff
requests
@ -57,11 +62,6 @@ buildPythonPackage rec {
"rich"
];
postPatch = ''
substituteInPlace pytest.ini \
--replace "--cov" ""
'';
# The tests want to write a configuration file
preCheck = ''
export HOME=$(mktemp -d)
@ -74,10 +74,10 @@ buildPythonPackage rec {
meta = with lib; {
description = "Python API wrapper for the Censys Search Engine (censys.io)";
mainProgram = "censys";
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 ];
mainProgram = "censys";
};
}