mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-13 01:03:25 +00:00
Merge pull request #198123 from fabaff/watchfiles-bump
python310Packages.watchfiles: 0.15.0 -> 0.18.0
This commit is contained in:
commit
55316d9884
@ -1,5 +1,5 @@
|
|||||||
{ stdenv
|
{ lib
|
||||||
, lib
|
, stdenv
|
||||||
, anyio
|
, anyio
|
||||||
, buildPythonPackage
|
, buildPythonPackage
|
||||||
, fetchFromGitHub
|
, fetchFromGitHub
|
||||||
@ -15,7 +15,7 @@
|
|||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "watchfiles";
|
pname = "watchfiles";
|
||||||
version = "0.15.0";
|
version = "0.18.0";
|
||||||
format = "pyproject";
|
format = "pyproject";
|
||||||
|
|
||||||
disabled = pythonOlder "3.7";
|
disabled = pythonOlder "3.7";
|
||||||
@ -24,13 +24,13 @@ buildPythonPackage rec {
|
|||||||
owner = "samuelcolvin";
|
owner = "samuelcolvin";
|
||||||
repo = pname;
|
repo = pname;
|
||||||
rev = "refs/tags/v${version}";
|
rev = "refs/tags/v${version}";
|
||||||
hash = "sha256-DibxoVH7uOy9rxzhiN4HmihA7HtdzErmJOnsI/NWY5I=";
|
hash = "sha256-biGGn0YAUbSO1hCJ4kU0ZWlqlXl/HRrBS3iIA3myRI8=";
|
||||||
};
|
};
|
||||||
|
|
||||||
cargoDeps = rustPlatform.fetchCargoTarball {
|
cargoDeps = rustPlatform.fetchCargoTarball {
|
||||||
inherit src;
|
inherit src;
|
||||||
name = "${pname}-${version}";
|
name = "${pname}-${version}";
|
||||||
hash = "sha256-EakC/rSIS42Q4Y0pvWKG7mzppU5KjCktnC09iFMZM0A=";
|
hash = "sha256-nmkIKA4EDMOeppOxKwLSh3oREInlDIcFzE7/EYZRGKY=";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
@ -45,10 +45,6 @@ buildPythonPackage rec {
|
|||||||
anyio
|
anyio
|
||||||
];
|
];
|
||||||
|
|
||||||
preCheck = ''
|
|
||||||
rm -rf watchfiles
|
|
||||||
'';
|
|
||||||
|
|
||||||
checkInputs = [
|
checkInputs = [
|
||||||
dirty-equals
|
dirty-equals
|
||||||
pytest-mock
|
pytest-mock
|
||||||
@ -56,15 +52,23 @@ buildPythonPackage rec {
|
|||||||
pytestCheckHook
|
pytestCheckHook
|
||||||
];
|
];
|
||||||
|
|
||||||
|
postPatch = ''
|
||||||
|
sed -i "/^requires-python =.*/a version = '${version}'" pyproject.toml
|
||||||
|
'';
|
||||||
|
|
||||||
|
preCheck = ''
|
||||||
|
rm -rf watchfiles
|
||||||
|
'';
|
||||||
|
|
||||||
pythonImportsCheck = [
|
pythonImportsCheck = [
|
||||||
"watchfiles"
|
"watchfiles"
|
||||||
];
|
];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
broken = stdenv.isDarwin;
|
description = "File watching and code reload";
|
||||||
description = "Simple, modern file watching and code reload";
|
|
||||||
homepage = "https://watchfiles.helpmanual.io/";
|
homepage = "https://watchfiles.helpmanual.io/";
|
||||||
license = licenses.mit;
|
license = licenses.mit;
|
||||||
maintainers = with maintainers; [ fab ];
|
maintainers = with maintainers; [ fab ];
|
||||||
|
broken = stdenv.isDarwin;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user