forked from mirrors/nixpkgs
Merge pull request #173920 from fabaff/watchfiles-bump
python310Packages.watchfiles: init at 0.14.1
This commit is contained in:
commit
f639790f24
49
pkgs/development/python-modules/dirty-equals/default.nix
Normal file
49
pkgs/development/python-modules/dirty-equals/default.nix
Normal file
|
@ -0,0 +1,49 @@
|
|||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, poetry-core
|
||||
, pytestCheckHook
|
||||
, pythonOlder
|
||||
, pytz
|
||||
, typing-extensions
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "dirty-equals";
|
||||
version = "0.4";
|
||||
format = "pyproject";
|
||||
|
||||
disabled = pythonOlder "3.7";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "samuelcolvin";
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
hash = "sha256-rh7N/VRx4sv/MhhGPkaYCn2d19Sv5er2CkG6/fJuXX4=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
poetry-core
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
pytz
|
||||
] ++ lib.optionals (pythonOlder "3.8") [
|
||||
typing-extensions
|
||||
];
|
||||
|
||||
checkInputs = [
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
pythonImportsCheck = [
|
||||
"dirty_equals"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Module for doing dirty (but extremely useful) things with equals";
|
||||
homepage = "https://github.com/samuelcolvin/dirty-equals";
|
||||
license = with licenses; [ mit ];
|
||||
maintainers = with maintainers; [ fab ];
|
||||
};
|
||||
}
|
68
pkgs/development/python-modules/watchfiles/default.nix
Normal file
68
pkgs/development/python-modules/watchfiles/default.nix
Normal 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 ];
|
||||
};
|
||||
}
|
|
@ -2245,6 +2245,8 @@ in {
|
|||
|
||||
directv = callPackage ../development/python-modules/directv { };
|
||||
|
||||
dirty-equals = callPackage ../development/python-modules/dirty-equals { };
|
||||
|
||||
discid = callPackage ../development/python-modules/discid { };
|
||||
|
||||
discogs-client = callPackage ../development/python-modules/discogs-client { };
|
||||
|
@ -10944,6 +10946,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 { };
|
||||
|
|
Loading…
Reference in a new issue