From 280ea773edd42209f2a6884acca77667f63a8815 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Wed, 13 Aug 2025 01:15:40 +0200 Subject: [PATCH] python313Packages.censys: refactor --- .../development/python-modules/censys/default.nix | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/pkgs/development/python-modules/censys/default.nix b/pkgs/development/python-modules/censys/default.nix index 7947100b755f..86b35539f5f9 100644 --- a/pkgs/development/python-modules/censys/default.nix +++ b/pkgs/development/python-modules/censys/default.nix @@ -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"; };