mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-30 19:02:57 +00:00
Merge pull request #302659 from TomaSajt/pytest-spec
python311Packages.pytest-spec: fix version name and clean up
This commit is contained in:
commit
9e2d15d2c7
@ -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 ];
|
||||
|
Loading…
Reference in New Issue
Block a user