mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-25 00:12:56 +00:00
python3Packages.pytest-examples: 0.0.13 -> 0.0.14
This commit is contained in:
parent
9b0635ee76
commit
30fa43b76e
@ -12,33 +12,28 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "pytest-examples";
|
||||
version = "0.0.13";
|
||||
version = "0.0.14";
|
||||
pyproject = true;
|
||||
|
||||
disabled = pythonOlder "3.7";
|
||||
disabled = pythonOlder "3.8";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "pydantic";
|
||||
repo = "pytest-examples";
|
||||
rev = "refs/tags/v${version}";
|
||||
hash = "sha256-R0gSWQEGMkJhkeXImyris2wzqjJ0hC3zO0voEdhWLoY=";
|
||||
hash = "sha256-MAiTNz2Ygk+JOiiT5DGhJ15xITbS+4Gk23YCKJm7OKE=";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
# ruff binary is used directly, the ruff Python package is not needed
|
||||
substituteInPlace pytest_examples/lint.py \
|
||||
--replace-fail "'ruff'" "'${lib.getExe ruff}'"
|
||||
'';
|
||||
|
||||
pythonRemoveDeps = [ "ruff" ];
|
||||
|
||||
build-system = [
|
||||
hatchling
|
||||
];
|
||||
|
||||
buildInputs = [ pytest ];
|
||||
|
||||
dependencies = [ black ];
|
||||
dependencies = [
|
||||
black
|
||||
ruff
|
||||
];
|
||||
|
||||
nativeCheckInputs = [ pytestCheckHook ];
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user