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
pythonPackages.requests-unixsocket: init at 0.1.5 #35056
Conversation
meta = { | ||
description = "Use requests to talk HTTP via a UNIX domain socket"; | ||
homepage = https://github.com/msabramo/requests-unixsocket; | ||
license = lib.licenses.apache2; |
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.
licenses.asl2
# ported to use the now-upstream pytest log capture functionality | ||
doCheck = false; | ||
|
||
meta = { |
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.
meta = with lib; {
description = "Use requests to talk HTTP via a UNIX domain socket"; | ||
homepage = https://github.com/msabramo/requests-unixsocket; | ||
license = lib.licenses.apache2; | ||
maintainers = [ lib.maintainers.catern ]; |
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.
You can get rid of lib
here.
|
||
propagatedBuildInputs = [ requests ]; | ||
|
||
# has unpackaged test dependency pytest-capturelog, should be |
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.
Would it be too big an effort to package pytest-capturelog?
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.
I think it would be unnecessary, since not only is that functionality now upstream, there's a more popular fork "pytest-catchlog" which is packaged. Also, there are other unpackaged test deps besides that one.
@GrahamcOfBorg build python2.pkgs.requests-unixsocket python3.pkgs.requests-unixsocket |
Failure on x86_64-linux (full log) Partial log (click to expand)
|
Failure on aarch64-linux (full log) Partial log (click to expand)
|
meta = with lib; { | ||
description = "Use requests to talk HTTP via a UNIX domain socket"; | ||
homepage = https://github.com/msabramo/requests-unixsocket; | ||
license = licenses.asl2; |
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.
Sorry, it should have been asl20
.
@GrahamcOfBorg build python2.pkgs.requests-unixsocket python3.pkgs.requests-unixsocket |
Failure on x86_64-linux (full log) Partial log (click to expand)
|
Failure on aarch64-linux (full log) Partial log (click to expand)
|
|
To enable the tests: diff --git a/pkgs/development/python-modules/requests-unixsocket/default.nix b/pkgs/development/python-modules/requests-unixsocket/default.nix
index 08e7c9537da..d67e8881110 100644
--- a/pkgs/development/python-modules/requests-unixsocket/default.nix
+++ b/pkgs/development/python-modules/requests-unixsocket/default.nix
@@ -1,4 +1,6 @@
-{ lib, buildPythonPackage, fetchPypi, pbr, requests }:
+{ lib, buildPythonPackage, fetchPypi
+, pbr, requests
+, pytest, pytestpep8, waitress }:
buildPythonPackage rec {
pname = "requests-unixsocket";
@@ -12,9 +14,11 @@ buildPythonPackage rec {
nativeBuildInputs = [ pbr ];
propagatedBuildInputs = [ requests ];
- # has unpackaged test dependency pytest-capturelog, should be
- # ported to use the now-upstream pytest log capture functionality
- doCheck = false;
+ checkInputs = [ pytest pytestpep8 waitress ];
+
+ checkPhase = ''
+ py.test
+ '';
meta = with lib; {
description = "Use requests to talk HTTP via a UNIX domain socket"; |
@GrahamcOfBorg build python2.pkgs.requests-unixsocket python3.pkgs.requests-unixsocket |
Success on x86_64-linux (full log) Attempted: python2.pkgs.requests-unixsocket, python3.pkgs.requests-unixsocket Partial log (click to expand)
|
Success on aarch64-linux (full log) Attempted: python2.pkgs.requests-unixsocket, python3.pkgs.requests-unixsocket Partial log (click to expand)
|
No description provided.