uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
65
pkgs/development/python-modules/watchdog/default.nix
Normal file
65
pkgs/development/python-modules/watchdog/default.nix
Normal file
|
|
@ -0,0 +1,65 @@
|
|||
{ lib
|
||||
, stdenv
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, pathtools
|
||||
, pyyaml
|
||||
, flaky
|
||||
, pytest-timeout
|
||||
, pytestCheckHook
|
||||
, CoreServices
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "watchdog";
|
||||
version = "2.1.8";
|
||||
format = "setuptools";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "sha256-bQMUkSaGSr0ycV1OkmfSdUzt4lppBSkBOZNWrTvF7P8=";
|
||||
};
|
||||
|
||||
buildInputs = lib.optionals stdenv.isDarwin [ CoreServices ];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
pathtools
|
||||
pyyaml
|
||||
];
|
||||
|
||||
checkInputs = [
|
||||
flaky
|
||||
pytest-timeout
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace setup.cfg \
|
||||
--replace "--cov=watchdog" "" \
|
||||
--replace "--cov-report=term-missing" ""
|
||||
'';
|
||||
|
||||
disabledTests = [
|
||||
# probably failing because of an encoding related issue
|
||||
"test_create_wrong_encoding"
|
||||
];
|
||||
|
||||
disabledTestPaths = [
|
||||
# Tests are flaky
|
||||
"tests/test_inotify_buffer.py"
|
||||
];
|
||||
|
||||
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 ];
|
||||
# error: use of undeclared identifier 'kFSEventStreamEventFlagItemCloned'
|
||||
# builds fine on aarch64-darwin
|
||||
broken = stdenv.isDarwin && !stdenv.isAarch64;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue