Skip to content

Commit

Permalink
Merge pull request #120468 from fabaff/bump-watchdog
Browse files Browse the repository at this point in the history
python3Packages.watchdog: 2.0.2 -> 2.0.3
  • Loading branch information
SuperSandro2000 committed Apr 24, 2021
2 parents 2fd62d8 + 9b99f69 commit f190c1f
Showing 1 changed file with 8 additions and 13 deletions.
21 changes: 8 additions & 13 deletions pkgs/development/python-modules/watchdog/default.nix
Expand Up @@ -2,32 +2,22 @@
, stdenv
, buildPythonPackage
, fetchPypi
, fetchpatch
, argh
, pathtools
, pyyaml
, pytest-cov
, pytestCheckHook
, CoreServices
}:

buildPythonPackage rec {
pname = "watchdog";
version = "2.0.2";
version = "2.0.3";

src = fetchPypi {
inherit pname version;
sha256 = "sha256-Uy/t2ZPnVVRnH6o2zQTFgM7T+uCEJUp3mvu9iq8AVms=";
sha256 = "sha256-QojTqYQyTbSS5XqhaWZiOKJXjwr1oIFoVSZgj7n2vWE=";
};

patches = [
(fetchpatch {
# Fix test flakiness on Apple Silicon, remove after upgrade to 2.0.6.
url = "https://github.com/gorakhargosh/watchdog/commit/331fd7c2c819663be39bc146e78ce67553f265fa.patch";
sha256 = "sha256-pLkZmbPN3qRNHs53OP0HIyDxqYCPPo6yOcBLD3aO2YE=";
})
];

buildInputs = lib.optionals stdenv.isDarwin [ CoreServices ];

propagatedBuildInputs = [
Expand All @@ -37,10 +27,15 @@ buildPythonPackage rec {
];

checkInputs = [
pytest-cov
pytestCheckHook
];

postPatch = ''
substituteInPlace setup.cfg \
--replace "--cov=watchdog" "" \
--replace "--cov-report=term-missing" ""
'';

pythonImportsCheck = [ "watchdog" ];

meta = with lib; {
Expand Down

0 comments on commit f190c1f

Please sign in to comment.