Merge pull request #198123 from fabaff/watchfiles-bump

python310Packages.watchfiles: 0.15.0 -> 0.18.0
This commit is contained in:
Fabian Affolter 2022-10-28 10:03:14 +02:00 committed by GitHub
commit 55316d9884
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,5 +1,5 @@
{ stdenv
, lib
{ lib
, stdenv
, anyio
, buildPythonPackage
, fetchFromGitHub
@ -15,7 +15,7 @@
buildPythonPackage rec {
pname = "watchfiles";
version = "0.15.0";
version = "0.18.0";
format = "pyproject";
disabled = pythonOlder "3.7";
@ -24,13 +24,13 @@ buildPythonPackage rec {
owner = "samuelcolvin";
repo = pname;
rev = "refs/tags/v${version}";
hash = "sha256-DibxoVH7uOy9rxzhiN4HmihA7HtdzErmJOnsI/NWY5I=";
hash = "sha256-biGGn0YAUbSO1hCJ4kU0ZWlqlXl/HRrBS3iIA3myRI8=";
};
cargoDeps = rustPlatform.fetchCargoTarball {
inherit src;
name = "${pname}-${version}";
hash = "sha256-EakC/rSIS42Q4Y0pvWKG7mzppU5KjCktnC09iFMZM0A=";
hash = "sha256-nmkIKA4EDMOeppOxKwLSh3oREInlDIcFzE7/EYZRGKY=";
};
nativeBuildInputs = [
@ -45,10 +45,6 @@ buildPythonPackage rec {
anyio
];
preCheck = ''
rm -rf watchfiles
'';
checkInputs = [
dirty-equals
pytest-mock
@ -56,15 +52,23 @@ buildPythonPackage rec {
pytestCheckHook
];
postPatch = ''
sed -i "/^requires-python =.*/a version = '${version}'" pyproject.toml
'';
preCheck = ''
rm -rf watchfiles
'';
pythonImportsCheck = [
"watchfiles"
];
meta = with lib; {
broken = stdenv.isDarwin;
description = "Simple, modern file watching and code reload";
description = "File watching and code reload";
homepage = "https://watchfiles.helpmanual.io/";
license = licenses.mit;
maintainers = with maintainers; [ fab ];
broken = stdenv.isDarwin;
};
}