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
doitlive: init at 3.0.3 #34361
doitlive: init at 3.0.3 #34361
Conversation
This should rather be in |
@GrahamcOfBorg build pythonPackages.doitlive |
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.
Failure on aarch64-linux (full log)
Partial log (click to expand)
Reading https://pypi.python.org/simple/pytest/
Download error on https://pypi.python.org/simple/pytest/: [Errno -2] Name or service not known -- Some packages may not be found!
Couldn't find index page for 'pytest' (maybe misspelled?)
Scanning index of all packages (this may take a while)
Reading https://pypi.python.org/simple/
Download error on https://pypi.python.org/simple/: [Errno -2] Name or service not known -- Some packages may not be found!
No local packages or working download links found for pytest
error: Could not find suitable distribution for Requirement.parse('pytest')
builder for '/nix/store/x9d6ixwmqna3f35mg4irq6vwkms1apbc-doitlive-3.0.3.drv' failed with exit code 1
error: build of '/nix/store/x9d6ixwmqna3f35mg4irq6vwkms1apbc-doitlive-3.0.3.drv' failed
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.
Success on x86_64-darwin (full log)
Partial log (click to expand)
reading manifest file 'doitlive.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
writing manifest file 'doitlive.egg-info/SOURCES.txt'
running build_ext
----------------------------------------------------------------------
Ran 0 tests in 0.000s
OK
/nix/store/3dds2kdx2kkwnd01ichfmxb80gbijixk-doitlive-3.0.3
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.
Failure on x86_64-linux (full log)
Partial log (click to expand)
Reading https://pypi.python.org/simple/pytest/
Download error on https://pypi.python.org/simple/pytest/: [Errno -2] Name or service not known -- Some packages may not be found!
Couldn't find index page for 'pytest' (maybe misspelled?)
Scanning index of all packages (this may take a while)
Reading https://pypi.python.org/simple/
Download error on https://pypi.python.org/simple/: [Errno -2] Name or service not known -- Some packages may not be found!
No local packages or working download links found for pytest
error: Could not find suitable distribution for Requirement.parse('pytest')
builder for ‘/nix/store/7idllqrfw69j5pqmksmmpk7yay60k2ii-doitlive-3.0.3.drv’ failed with exit code 1
error: build of ‘/nix/store/7idllqrfw69j5pqmksmmpk7yay60k2ii-doitlive-3.0.3.drv’ failed
|
||
buildPythonApplication rec { | ||
pname = "doitlive"; | ||
name = "${pname}-${version}"; |
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.
no name
|
||
propagatedBuildInputs = [ click ]; | ||
|
||
checkInputs = [ ipython ]; |
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.
Did you try specifying a custom checkPhase
such that the tests are run? This should be something like invoke test
oder py.test
.
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 tried, basically using
checkInputs = with python3Packages; [ pkgs.git ipython pytest ];
LC_ALL="en_US.UTF-8";
checkPhase = "pytest";
Still something like 20 tests were failing due to issues with ipython. Unfortunately could not get it to work. How important is the check phase for python packages?
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.
Okay, let's keep the tests disabled. Please add a comment that there were too many failures or something like that.
However, tests are nice to have for automatic updates.
pkgs/tools/misc/doitlive/default.nix
Outdated
, pkgs, python3Packages }: | ||
|
||
python3Packages.buildPythonApplication rec { | ||
name = "doitlive-${version}"; |
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.
pname
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.
done
pkgs/tools/misc/doitlive/default.nix
Outdated
name = "doitlive-${version}"; | ||
version = "3.0.3"; | ||
|
||
src = fetchFromGitHub { |
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.
Why not fetchPypi
?
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.
done
pkgs/tools/misc/doitlive/default.nix
Outdated
sha256 = "1y1v7f64fhykm7p9yp1ymx1gj6s8qzcq6ygyf3fzwrvw2jjf3n93"; | ||
}; | ||
|
||
propagatedBuildInputs = with python3Packages; [ pkgs.which click ]; |
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.
which
should be an argument, notpkgs
.- Is
which
called by doitlive? In that case, I think it's better to patch the sources or addmakeWrapperArgs = ["--prefix PATH : ${which}/bin"];
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.
Removed it
pkgs/tools/misc/doitlive/default.nix
Outdated
{ stdenv, pythonPackages }: | ||
|
||
pythonPackages.buildPythonApplication rec { | ||
name = "${pname}-${version}"; |
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.
drop this line
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.
done
pkgs/top-level/all-packages.nix
Outdated
@@ -20134,6 +20134,8 @@ with pkgs; | |||
|
|||
dbus-map = callPackage ../tools/misc/dbus-map { }; | |||
|
|||
doitlive = callPackage ../tools/misc/doitlive { }; |
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 the right place would be in the TOOLS
section, after dlx
.
@GrahamcOfBorg build doitlive |
Success on x86_64-linux (full log) Attempted: doitlive Partial log (click to expand)
|
Success on aarch64-linux (full log) Attempted: doitlive Partial log (click to expand)
|
Motivation for this change
Add package doitlive
Things done
build-use-sandbox
innix.conf
on non-NixOS)nix-shell -p nox --run "nox-review wip"
./result/bin/
)