Skip to content
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

Merged
merged 2 commits into from Jan 13, 2018
Merged

tifffile: init at v0.13.0 #33750

merged 2 commits into from Jan 13, 2018

Conversation

lebastr
Copy link
Contributor

@lebastr lebastr commented Jan 11, 2018

Motivation for this change

I needed to read a 16bit tiff files with python. Tifffile reads tiff into numpy array.

Things done
  • Tested using sandboxing (nix.useSandbox on NixOS, or option build-use-sandbox in nix.conf on non-NixOS)
  • Built on platform(s)
    • NixOS
    • macOS
    • other Linux distributions
  • Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
  • Tested compilation of all pkgs that depend on this change using nix-shell -p nox --run "nox-review wip"
  • Tested execution of all binary files (usually in ./result/bin/)
  • Fits CONTRIBUTING.md.


buildInputs = [ nose ];

propagatedBuildInputs = [ numpy ] ++ lib.optional isPy27 futures ++ lib.optional (pythonOlder "3.0") enum34;
Copy link
Member

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?

Copy link
Contributor Author

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"'

@lheckemann
Copy link
Member

@GrahamcOfBorg build python2Packages.tifffile python3Packages.tifffile

Copy link

@GrahamcOfBorg GrahamcOfBorg left a 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

Copy link

@GrahamcOfBorg GrahamcOfBorg left a 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

Copy link

@GrahamcOfBorg GrahamcOfBorg left a 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}";
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no name

Copy link
Member

@Mic92 Mic92 Jan 13, 2018

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 {
Copy link
Member

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 ];
Copy link
Member

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 = {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

license?

@Mic92 Mic92 merged commit 6ccb554 into NixOS:master Jan 13, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants