nixpkgs/pkgs/development/python-modules/watchdog/default.nix

45 lines
826 B
Nix
Raw Normal View History

{ lib, stdenv
, buildPythonPackage
, fetchPypi
, argh
, pathtools
, pyyaml
, pkgs
2021-02-01 22:32:12 +00:00
, pytest-cov
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "watchdog";
version = "2.0.0";
src = fetchPypi {
inherit pname version;
sha256 = "sha256-/UtWz74NDZxPxDGs7KdXAKfxLTc33C6csuwrpkloBCU=";
};
buildInputs = lib.optionals stdenv.isDarwin
2019-06-20 17:40:52 +01:00
[ pkgs.darwin.apple_sdk.frameworks.CoreServices ];
2021-02-01 22:32:12 +00:00
propagatedBuildInputs = [
argh
pathtools
pyyaml
];
checkInputs = [
pytest-cov
pytestCheckHook
];
pythonImportsCheck = [ "watchdog" ];
meta = with lib; {
description = "Python API and shell utilities to monitor file system events";
homepage = "https://github.com/gorakhargosh/watchdog";
license = licenses.asl20;
maintainers = with maintainers; [ goibhniu ];
};
}