-
-
Notifications
You must be signed in to change notification settings - Fork 15.4k
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.affine: init at 2.2.1 #50951
Conversation
please rebase instead of merging |
f29a30f
to
60cbac5
Compare
Ack |
60cbac5
to
0070b8d
Compare
@GrahamcOfBorg eval |
@c0bw3b Sorry, do you know why earlier it was failing while now, after your message, it worked? |
@mredaelli no you did nothing wrong, it was a temporary breakage in |
]; | ||
|
||
meta = with lib; { | ||
description = ''Python package designed for geospatial data processing in |
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 description can be shortened for brevity.
Something like
"Process geospatial data to create maps and perform analyses"
0070b8d
to
5498949
Compare
pkgs/top-level/python-packages.nix
Outdated
@@ -4998,6 +5010,11 @@ in { | |||
|
|||
nanoleaf = callPackage ../development/python-modules/nanoleaf { }; | |||
|
|||
|
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.
There's whitespace here from before.
Also looks like accidentally squashed your commits. Anyway they should be in the format |
Going to check if they build properly now since my feedback isn't critical to their function. @GrahamcOfBorg pythonPackages.cartopy python3Packages.cartopy pythonPackages.pyepsg python3Packages.pyepsg pythonPackages.rasterio python3Packages.rasterio pythonPackages.snug python3Packages.snug pythonPackages.snuggs python3Packages.snuggs |
Cartopy works only with Python 3.6. Not sure if that's a problem, or how to manage it |
However from SciTools/cartopy#1186 I can see that it does work for other interpreter versions, though they are looking to drop support for python2 very soon. Shouldn't be a problem yet. |
It's the (optional) dependency on Should I add a |
This should be fine diff --git a/pkgs/development/python-modules/cartopy/default.nix b/pkgs/development/python-modules/cartopy/default.nix
index 4c6e05149fc..efe26b217fa 100644
--- a/pkgs/development/python-modules/cartopy/default.nix
+++ b/pkgs/development/python-modules/cartopy/default.nix
@@ -1,6 +1,6 @@
{ buildPythonPackage, lib, fetchPypi,
pytest, filelock, mock, pep8,
- cython,
+ cython, isPy37,
six, pyshp, shapely, geos, proj, numpy,
gdal, pillow, matplotlib, pyepsg, pykdtree, scipy, owslib, fiona
}:
@@ -24,8 +24,8 @@ buildPythonPackage rec {
six pyshp shapely geos proj numpy
# optional
- gdal pillow matplotlib pyepsg pykdtree scipy owslib fiona
- ];
+ gdal pillow matplotlib pyepsg pykdtree scipy fiona
+ ] ++ lib.optionals (!isPy37) [ owslib ]; # owslib is broken with python3.7
meta = with lib; {
description = ''Process geospatial data to create maps and perform analyses.'';
|
4092454
to
82fc860
Compare
] ++ lib.optionals (!isPy37) [ owslib ]; # owslib is broken with python3.7 | ||
|
||
meta = with lib; { | ||
description = ''Process geospatial data to create maps and perform analyses.''; |
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.
The old description sneaked in somehow.
82fc860
to
d05ff07
Compare
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'd prefer beginning the commit messages with pythinPackages.<attrname>
but that's up to you.
|
||
# optional | ||
gdal pillow matplotlib pyepsg pykdtree scipy fiona | ||
] ++ lib.optionals (!isPy37) [ owslib ]; # owslib is broken with python3.7 |
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.
WIll probably be fixed by #50982.
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 should be able to rebase on master and get rid of this.
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.
Yep, locally it worked both for python 3.6 and 3.7.
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.
Ready for review :)
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.
Actually opened that to fix this :)
10748ff
to
1ae2f56
Compare
I'm seeing a lot of different commit msg for python so I don't even know what to suggest to people 😄 |
|
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've successfully built all of the packages locally(both python attributes).
Everything looks great to me, however we should wait if @dotlambda has any other feedback.
1ae2f56
to
b92f2e3
Compare
b92f2e3
to
46aedca
Compare
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.
@mredaelli Again, I'm able to build these all successfully 👍
I think this is good to merge.
I'll go ahead and do so once we have @dotlambda approval.
@mredaelli Thanks for contributing and bearing with us when our reviews weren't converging 😄 |
@worldofpeace Not at all! It was very instructive, thank you all |
cartopy: init at 0.17.0
pyepsg: init at 0.3.2
rasterio: init at 0.34.0
snug: init at 1.3.4
snuggs: init at 1.4.2
A few libraries related to geospatial data analysis
Motivation for this change
Things done
sandbox
innix.conf
on non-NixOS)nix-shell -p nox --run "nox-review wip"
./result/bin/
)nix path-info -S
before and after)