2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
stdenv,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchPypi,
|
|
|
|
pytestCheckHook,
|
|
|
|
watchdog,
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "hupper";
|
2024-04-21 15:54:59 +00:00
|
|
|
version = "1.12.1";
|
2024-01-02 11:29:13 +00:00
|
|
|
format = "setuptools";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2024-04-21 15:54:59 +00:00
|
|
|
hash = "sha256-Br9UFw/07PTIStXxiN7jkBFzq0ScJgitBbm/1rE+Mus=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
# 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)
|
2024-09-26 11:04:55 +00:00
|
|
|
nativeCheckInputs = [
|
|
|
|
pytestCheckHook
|
|
|
|
] ++ lib.optionals (!stdenv.hostPlatform.isDarwin) [ watchdog ];
|
2021-06-28 23:13:55 +00:00
|
|
|
|
|
|
|
disabledTestPaths = [
|
|
|
|
# Doesn't work with an exported home, RuntimeError: timeout waiting for change to file=/build/tmpgfn145cx
|
|
|
|
"tests/test_it.py"
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "hupper" ];
|
2021-02-17 17:02:09 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
2021-06-28 23:13:55 +00:00
|
|
|
description = "In-process file monitor/reloader for reloading your code automatically during development";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "hupper";
|
2021-02-17 17:02:09 +00:00
|
|
|
homepage = "https://github.com/Pylons/hupper";
|
|
|
|
license = licenses.mit;
|
2024-07-31 10:19:44 +00:00
|
|
|
maintainers = [ ];
|
2021-02-17 17:02:09 +00:00
|
|
|
};
|
2020-04-24 23:36:52 +00:00
|
|
|
}
|