-
-
Notifications
You must be signed in to change notification settings - Fork 14.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
python312Packages.pastedeploy: 3.0.1 -> 3.1 #341434
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,27 +4,30 @@ | |
fetchFromGitHub, | ||
pytestCheckHook, | ||
pythonOlder, | ||
setuptools, | ||
}: | ||
|
||
buildPythonPackage rec { | ||
pname = "pastedeploy"; | ||
version = "3.0.1"; | ||
format = "setuptools"; | ||
version = "3.1"; | ||
pyproject = true; | ||
|
||
disabled = pythonOlder "3.7"; | ||
|
||
src = fetchFromGitHub { | ||
owner = "Pylons"; | ||
repo = pname; | ||
repo = "pastedeploy"; | ||
rev = "refs/tags/${version}"; | ||
hash = "sha256-8MNeOcYPEYAfghZN/K/1v/tAAdgz/fCvuVnBoru+81Q="; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @anthonyroussel you didn't update the hash for the new version (which also means you built and tested against the old version's source, which happened to be in your local store as a fixed-output derivation). There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Thank you for the review! Oops sorry, indeed, looks like I forgot to update the hash for this package. I created this PR to fix the hash: #368915 |
||
}; | ||
|
||
postPatch = '' | ||
substituteInPlace pytest.ini \ | ||
--replace " --cov" "" | ||
--replace-fail " --cov" "" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We could also use pytest-cov-stub |
||
''; | ||
|
||
build-system = [ setuptools ]; | ||
|
||
nativeCheckInputs = [ pytestCheckHook ]; | ||
|
||
pythonImportsCheck = [ "paste.deploy" ]; | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are you sure setuptools is required at runtime?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for the review!
Yes,
setuptools
is required forpkg_resources
, see https://github.com/pasteorg/paste/blob/bc1753b00c5f342d28b1af73cd4f662b206c1f37/setup.py#L58