Merge pull request #302659 from TomaSajt/pytest-spec

python311Packages.pytest-spec: fix version name and clean up
This commit is contained in:
Peder Bergebakken Sundt 2024-04-16 23:24:44 +02:00 committed by GitHub
commit 9e2d15d2c7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 12 additions and 12 deletions

View File

@ -1,16 +1,16 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, poetry-core
, pytest
, pytestCheckHook
, pytest-describe
, pytest-cov
{
lib,
buildPythonPackage,
fetchFromGitHub,
poetry-core,
pytest,
pytestCheckHook,
pytest-describe,
}:
buildPythonPackage rec {
buildPythonPackage {
pname = "pytest-spec";
version = "unstable-2023-06-04";
version = "3.2.0-unstable-2023-06-04";
pyproject = true;
src = fetchFromGitHub {
@ -24,8 +24,8 @@ buildPythonPackage rec {
sed -i '/addopts/d' setup.cfg
# TODO: upstream
substituteInPlace pyproject.toml \
--replace "poetry>=0.12" "poetry-core" \
--replace "poetry.masonry.api" "poetry.core.masonry.api"
--replace-fail "poetry>=0.12" "poetry-core" \
--replace-fail "poetry.masonry.api" "poetry.core.masonry.api"
'';
nativeBuildInputs = [ poetry-core ];