Skip to content

Commit

Permalink
python312Packages.watchfiles: 0.22.0 -> 0.23.0
Browse files Browse the repository at this point in the history
  • Loading branch information
fabaff committed Sep 8, 2024
1 parent fa4b81d commit b0d8431
Showing 1 changed file with 12 additions and 11 deletions.
23 changes: 12 additions & 11 deletions pkgs/development/python-modules/watchfiles/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -18,24 +18,28 @@

buildPythonPackage rec {
pname = "watchfiles";
version = "0.22.0";
format = "pyproject";
version = "0.23.0";
pyproject = true;

disabled = pythonOlder "3.7";

src = fetchFromGitHub {
owner = "samuelcolvin";
repo = pname;
repo = "watchfiles";
rev = "refs/tags/v${version}";
hash = "sha256-TtRSRgtMOqsnhdvsic3lg33xlA+r/DcYHlzewSOu/44=";
hash = "sha256-kFScg3pkOD0gASRtfXSfwZxyW/XvW9x0zgMn0AQek4A=";
};

cargoDeps = rustPlatform.fetchCargoTarball {
inherit src;
name = "${pname}-${version}";
hash = "sha256-n9yN/VRNQWCxh+BoliIMkKqJC51inpB9DQ9WtqR4oA0=";
hash = "sha256-fg+uH/ATjIW67er7yZJLpnKOWremd+cPt5ksSAjv9xY=";
};

postPatch = ''
sed -i "/^requires-python =.*/a version = '${version}'" pyproject.toml
'';

buildInputs = lib.optionals stdenv.isDarwin [
CoreServices
libiconv
Expand All @@ -48,7 +52,7 @@ buildPythonPackage rec {
rustc
];

propagatedBuildInputs = [ anyio ];
dependencies = [ anyio ];

# Tests need these permissions in order to use the FSEvents API on macOS.
sandboxProfile = ''
Expand All @@ -62,10 +66,6 @@ buildPythonPackage rec {
pytestCheckHook
];

postPatch = ''
sed -i "/^requires-python =.*/a version = '${version}'" pyproject.toml
'';

preCheck = ''
rm -rf watchfiles
'';
Expand All @@ -79,9 +79,10 @@ buildPythonPackage rec {

meta = with lib; {
description = "File watching and code reload";
mainProgram = "watchfiles";
homepage = "https://watchfiles.helpmanual.io/";
changelog = "https://github.com/samuelcolvin/watchfiles/releases/tag/v${version}";
license = licenses.mit;
maintainers = with maintainers; [ fab ];
mainProgram = "watchfiles";
};
}

0 comments on commit b0d8431

Please sign in to comment.