depot/third_party/nixpkgs/pkgs/development/python-modules/hupper/default.nix
Default email 5ca88bfbb9 Project import generated by Copybara.
GitOrigin-RevId: 9f918d616c5321ad374ae6cb5ea89c9e04bf3e58
2024-07-31 10:19:44 +00:00

38 lines
1 KiB
Nix

{
lib,
stdenv,
buildPythonPackage,
fetchPypi,
pytestCheckHook,
watchdog,
}:
buildPythonPackage rec {
pname = "hupper";
version = "1.12.1";
format = "setuptools";
src = fetchPypi {
inherit pname version;
hash = "sha256-Br9UFw/07PTIStXxiN7jkBFzq0ScJgitBbm/1rE+Mus=";
};
# FIXME: watchdog dependency is disabled on Darwin because of #31865, which causes very silent
# segfaults in the testsuite that end up failing the tests in a background thread (in myapp)
nativeCheckInputs = [ pytestCheckHook ] ++ lib.optionals (!stdenv.isDarwin) [ watchdog ];
disabledTestPaths = [
# Doesn't work with an exported home, RuntimeError: timeout waiting for change to file=/build/tmpgfn145cx
"tests/test_it.py"
];
pythonImportsCheck = [ "hupper" ];
meta = with lib; {
description = "In-process file monitor/reloader for reloading your code automatically during development";
mainProgram = "hupper";
homepage = "https://github.com/Pylons/hupper";
license = licenses.mit;
maintainers = [ ];
};
}