-
-
Notifications
You must be signed in to change notification settings - Fork 15.4k
tifffile: init at v0.13.0 #33750
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
tifffile: init at v0.13.0 #33750
Conversation
|
||
buildInputs = [ nose ]; | ||
|
||
propagatedBuildInputs = [ numpy ] ++ lib.optional isPy27 futures ++ lib.optional (pythonOlder "3.0") enum34; |
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 [ numpy ] ++ lib.optionals (!isPy3k) [ futures enum34 ]
maybe be more suitable?
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 expression is equal this piece of code in setup.py:
'enum34;python_version<"3.0"',
'futures; python_version == "2.7"'
@GrahamcOfBorg build python2Packages.tifffile python3Packages.tifffile |
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 for system: x86_64-linux
writing manifest file 'tifffile.egg-info/SOURCES.txt'
running build_ext
copying build/lib.linux-x86_64-3.6/tifffile/_tifffile.cpython-36m-x86_64-linux-gnu.so -> tifffile
----------------------------------------------------------------------
Ran 0 tests in 0.000s
OK
/nix/store/q68yi4pgb4k49msvxs9h6yvzzzv5rnmd-python2.7-tifffile-v0.13.0
/nix/store/g3y6z62awz2vna3y66b9jwcaxm38893q-python3.6-tifffile-v0.13.0
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 for system: x86_64-darwin
Ran 0 tests in 0.000s
OK
----------------------------------------------------------------------
Ran 0 tests in 0.000s
OK
/nix/store/vhm5j5872rb4fzlgpvavgpy4aam67clj-python2.7-tifffile-v0.13.0
/nix/store/fg9wiwf2x11j8nqpfn5k5b61asb13iai-python3.6-tifffile-v0.13.0
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 for system: aarch64-linux
writing manifest file 'tifffile.egg-info/SOURCES.txt'
running build_ext
copying build/lib.linux-aarch64-3.6/tifffile/_tifffile.cpython-36m-aarch64-linux-gnu.so -> tifffile
----------------------------------------------------------------------
Ran 0 tests in 0.000s
OK
/nix/store/yyni705pl3a0ypdp148i4vkb8vgcbs6f-python2.7-tifffile-v0.13.0
/nix/store/a2hlcghf4vxybkjy1g86h4axdg5smp5z-python3.6-tifffile-v0.13.0
buildPythonPackage rec { | ||
pname = "tifffile"; | ||
rev = "v0.13.0"; | ||
name = "${pname}-${rev}"; |
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
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 attribute needed
rev = "v0.13.0"; | ||
name = "${pname}-${rev}"; | ||
|
||
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.
is fetching from PyPI not possible?
sha256 = "0adm1zf3b4gf8yjriidjnl9abcycqiy5bzannwyb8rcbh3jwdbzv"; | ||
}; | ||
|
||
buildInputs = [ nose ]; |
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.
checkInputs
|
||
propagatedBuildInputs = [ numpy ] ++ lib.optional isPy27 futures ++ lib.optional (pythonOlder "3.0") enum34; | ||
|
||
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.
license?
Motivation for this change
I needed to read a 16bit tiff files with python. Tifffile reads tiff into numpy array.
Things done
build-use-sandbox
innix.conf
on non-NixOS)nix-shell -p nox --run "nox-review wip"
./result/bin/
)