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
Bcolz init at 1.1.2 #29627
Bcolz init at 1.1.2 #29627
Conversation
pkgs/top-level/python-packages.nix
Outdated
@@ -3677,6 +3677,24 @@ in { | |||
}; | |||
}; | |||
|
|||
bcolz = buildPythonPackage rec { |
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.
this needs to be moved to python-modules/bcolz/default.nix
as explained in the header of this file
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.
Moved.
pkgs/top-level/python-packages.nix
Outdated
bcolz = buildPythonPackage rec { | ||
name = "bcolz-1.1.2"; | ||
|
||
src = pkgs.fetchurl { |
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.
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.
Thanks, that's better. Fixed.
pkgs/top-level/python-packages.nix
Outdated
}; | ||
|
||
propagatedBuildInputs = with self; [ numpy mock ]; | ||
buildInputs = with self; [ numpy ]; |
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 need if already a propagatedBuildInput
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.
pkgs/top-level/python-packages.nix
Outdated
buildInputs = with self; [ numpy ]; | ||
|
||
meta = { | ||
description = "A columnar data container that can be compressed."; |
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.
Description should have no period at the end. https://nixos.org/nixpkgs/manual/#sec-standard-meta-attributes
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 the period
2bb5d8e
to
d72fa65
Compare
Please test with sandboxing. |
d72fa65
to
7617f68
Compare
Thanks, fixed. Tested for python27 & python35 |
version = "1.1.2"; | ||
name = "${pname}-${version}"; | ||
|
||
disabled = !(isPy35 || isPy27); |
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.
surely it works on other interpreter versions as well?
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're right. Removed.
{ stdenv, buildPythonPackage, fetchPypi, numpy, mock, setuptools_scm, isPy27, isPy35 }: | ||
|
||
buildPythonPackage rec { | ||
pname = "bcolz"; |
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.
2 space indentation
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.
Fixed
}; | ||
|
||
doCheck = isPy27; | ||
propagatedBuildInputs = [ numpy mock setuptools_scm ]; |
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.
is setuptools_scm needed during 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.
moved it to buildInputs
sha256 = "0ws0b9p1r4gcxic7fm8clm2q2ily3bd6i4giczw4s6gv5ilk7ds2"; | ||
}; | ||
|
||
doCheck = isPy27; |
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 disable tests with other versions?
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 could only get the tests to pass on python2
7617f68
to
7231a07
Compare
|
7231a07
to
ebb5656
Compare
Motivation for this change
Added the bcolz package
Things done
build-use-sandbox
innix.conf
on non-NixOS)nix-shell -p nox --run "nox-review wip"
./result/bin/
)