19 buildPythonPackage rec {
24 disabled = pythonOlder "3.7";
26 src = fetchFromGitHub {
28 repo = "censys-python";
29 rev = "refs/tags/v${version}";
30 hash = "sha256-3evll1Ll8krvAfelGoJHOrmH7RvkeM/ZU1j13cTuXR4=";
34 substituteInPlace pytest.ini \
35 --replace-fail "--cov" ""
64 # The tests want to write a configuration file
66 export HOME=$(mktemp -d)
70 pythonImportsCheck = [ "censys" ];
73 description = "Python API wrapper for the Censys Search Engine (censys.io)";
74 homepage = "https://github.com/censys/censys-python";
75 changelog = "https://github.com/censys/censys-python/releases/tag/v${version}";
76 license = with licenses; [ asl20 ];
77 maintainers = with maintainers; [ fab ];
78 mainProgram = "censys";