python310Packages.watchfiles: init at 0.14.1

This commit is contained in:
Fabian Affolter 2022-05-21 22:06:59 +02:00
parent d328f0f8e9
commit 2b7d419317
2 changed files with 70 additions and 0 deletions

View file

@ -0,0 +1,68 @@
{ lib
, anyio
, buildPythonPackage
, fetchFromGitHub
, rustPlatform
, setuptools-rust
, pythonOlder
, dirty-equals
, pytest-mock
, pytest-timeout
, pytestCheckHook
, python
}:
buildPythonPackage rec {
pname = "watchfiles";
version = "0.14.1";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "samuelcolvin";
repo = pname;
rev = "v${version}";
hash = "sha256-XjmmyL7ZRqkYwGGk6/KkxL7e/JA43tQN4W3knTtc7t0=";
};
cargoDeps = rustPlatform.fetchCargoTarball {
inherit src;
name = "${pname}-${version}";
sha256 = "sha256-sZMj1HQ37gAG3WM+qBMhcCQ2MuUGom23lF8c4L0RQzM=";
};
nativeBuildInputs = [
setuptools-rust
] ++ (with rustPlatform; [
cargoSetupHook
rust.cargo
rust.rustc
]);
propagatedBuildInputs = [
anyio
];
checkInputs = [
dirty-equals
pytest-mock
pytest-timeout
pytestCheckHook
];
pythonImportsCheck = [
"watchfiles"
];
preCheck = ''
cd tests
'';
meta = with lib; {
description = "Simple, modern file watching and code reload";
homepage = "https://watchfiles.helpmanual.io/";
license = licenses.mit;
maintainers = with maintainers; [ fab ];
};
}

View file

@ -10954,6 +10954,8 @@ in {
inherit (pkgs.darwin.apple_sdk.frameworks) CoreServices;
};
watchfiles = callPackage ../development/python-modules/watchfiles { };
watchgod = callPackage ../development/python-modules/watchgod { };
waterfurnace = callPackage ../development/python-modules/waterfurnace { };