python3Packages.watchfiles: 0.14.1 -> 0.15.0

This commit is contained in:
Martin Weinelt 2022-07-16 12:59:44 +02:00
parent 461f3d73b6
commit 3715af8893

View File

@ -15,28 +15,28 @@
buildPythonPackage rec {
pname = "watchfiles";
version = "0.14.1";
format = "setuptools";
version = "0.15.0";
format = "pyproject";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "samuelcolvin";
repo = pname;
rev = "v${version}";
hash = "sha256-XjmmyL7ZRqkYwGGk6/KkxL7e/JA43tQN4W3knTtc7t0=";
rev = "refs/tags/v${version}";
hash = "sha256-DibxoVH7uOy9rxzhiN4HmihA7HtdzErmJOnsI/NWY5I=";
};
cargoDeps = rustPlatform.fetchCargoTarball {
inherit src;
name = "${pname}-${version}";
sha256 = "sha256-sZMj1HQ37gAG3WM+qBMhcCQ2MuUGom23lF8c4L0RQzM=";
hash = "sha256-EakC/rSIS42Q4Y0pvWKG7mzppU5KjCktnC09iFMZM0A=";
};
nativeBuildInputs = [
setuptools-rust
] ++ (with rustPlatform; [
cargoSetupHook
maturinBuildHook
rust.cargo
rust.rustc
]);
@ -45,6 +45,10 @@ buildPythonPackage rec {
anyio
];
preCheck = ''
rm -rf watchfiles
'';
checkInputs = [
dirty-equals
pytest-mock
@ -56,10 +60,6 @@ buildPythonPackage rec {
"watchfiles"
];
preCheck = ''
cd tests
'';
meta = with lib; {
broken = stdenv.isDarwin;
description = "Simple, modern file watching and code reload";