mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-07-06 17:13:24 -05:00
49 lines
984 B
Nix
49 lines
984 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
|
|
# build-system
|
|
uv-build,
|
|
|
|
# dependencies
|
|
pytest,
|
|
|
|
# tests
|
|
pytestCheckHook,
|
|
}:
|
|
|
|
let
|
|
pname = "pytest-describe";
|
|
version = "3.2.0";
|
|
in
|
|
buildPythonPackage {
|
|
inherit pname version;
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "pytest-dev";
|
|
repo = "pytest-describe";
|
|
tag = version;
|
|
hash = "sha256-nvTINE3QtV2pCKD/aixYDSO2ryW1uYDv55FLOMP7Vlc=";
|
|
};
|
|
|
|
postPatch = ''
|
|
substituteInPlace pyproject.toml \
|
|
--replace-fail "uv_build>=0.9.4,<0.10.0" uv_build
|
|
'';
|
|
|
|
build-system = [ uv-build ];
|
|
|
|
buildInputs = [ pytest ];
|
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
|
|
|
meta = {
|
|
description = "Describe-style plugin for the pytest framework";
|
|
homepage = "https://github.com/pytest-dev/pytest-describe";
|
|
changelog = "https://github.com/pytest-dev/pytest-describe/releases/tag/${version}";
|
|
license = lib.licenses.mit;
|
|
maintainers = with lib.maintainers; [ hexa ];
|
|
};
|
|
}
|