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

View File

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