depot/third_party/nixpkgs/pkgs/development/python-modules/hupper/default.nix
Default email 83405b6dd2 Project import generated by Copybara.
GitOrigin-RevId: ac718d02867a84b42522a0ece52d841188208f2c
2023-03-15 17:39:30 +01:00

39 lines
1,023 B
Nix

{ lib
, stdenv
, buildPythonPackage
, fetchPypi
, pytestCheckHook
, watchdog
}:
buildPythonPackage rec {
pname = "hupper";
version = "1.11";
src = fetchPypi {
inherit pname version;
hash = "sha256-FcEb13XY+YCVt0W05lihfCXIbjtzJ1yuiWrByNUzyxg=";
};
# 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";
homepage = "https://github.com/Pylons/hupper";
license = licenses.mit;
maintainers = with maintainers; [ ];
};
}