Commit graph

134 commits

Author SHA1 Message Date
Oleh Stolyar
719f74ef4c Add a closure size test
Can fail with the following:

output '/nix/store/dxxkcgkl4qfypf97jcw96lgba671hqmb-closure-size-1.0.0' is not allowed to refer to the following paths:
  /nix/store/9bi4j2k7bnqprn6h2ijn63xgskdgacxk-poetry-1.0.2
  /nix/store/bqr68255raz3icc73nq6788105v0r748-postgresql-11.6
  /nix/store/qksib0d7ygx1mmqk7172yjz02ya13lsh-gcc-9.2.0
2020-01-17 15:45:16 +00:00
Oleh Stolyar
fd450ae21d Reduce closure size of packages built with poetry2nix
- Strip libraries and executables.
  If they are not stripped, they will retain debug symbols that often reference
  compilers (standard library includes), or dev outputs
  (headers that are not needed at runtime).

- Put buildSystemPkgs in buildInputs instead of propagatedBuildInputs.
  This removes intreehooks and Poetry from runtime closure.
  During fixupPhase, scripts in $out/bin are wrapped, and the wrapping
  script walks all propagatedBuildInputs when collecting PATH and
  PYTHONPATH.
2020-01-17 15:45:16 +00:00
Oleh Stolyar
58eb9e63a7 Make it possible to pass additional nativeBuildInputs
..to mkPoetryApplication
2020-01-17 15:45:16 +00:00
Oleh Stolyar
5c943c6964 Do not depend on contents of pwd (#38)
Prevent Nix from copying the project directory to store by removing it
from args passed to buildPythonApplication.
2020-01-17 14:39:51 +00:00
adisbladis
380a8aa482
Add dlib overrides 2020-01-17 11:01:22 +00:00
Roberto Di Remigio
36170bfc28 Fix small mistake in override of vose-alias-method (#37) 2020-01-16 10:27:08 +00:00
adisbladis
6032bb34b2
Add overrides to make scipy/scikit-learn build 2020-01-15 16:18:22 +00:00
adisbladis
2751a7fa0d
Add overrides required to build poetry with python2 2020-01-13 15:43:56 +00:00
adisbladis
d224eabc6a
Re-enable Qt5 test
I've added `sip` to the environment which makes the package work
regardless of what version of sip is in nixpkgs.
2020-01-13 10:43:43 +00:00
adisbladis
d887ec4602
Disable pyqt5 test for now
We are waiting for an update of python3Packages.sip to hit nixpkgs
2020-01-13 00:28:39 +00:00
adisbladis
8591164784
Add overrides to build pyqt5
Extra functionality exposed in nixpkgs needs further overrides.
2020-01-13 00:27:14 +00:00
adisbladis
301760e845
Remove getAttrDefault
Nix has built-in syntax for this operation, so lets use it.
2020-01-13 00:27:10 +00:00
adisbladis
bf56efefda
Add overrides removing LICENSE files
They lead to collisions.

Probably there should be some cleanup for these kind of files? cc @FRidh
2020-01-12 20:29:23 +00:00
adisbladis
2f59f1db2a
Fix Egg support 2020-01-12 20:00:17 +00:00
adisbladis
b520fa1fce
Add ability to skip tests through environment 2020-01-12 19:58:59 +00:00
adisbladis
136f008a03
Add preferWheel option to <derivation>.override
Previously override wasn't really useful as it inherited the args from
buildPythonPackage.
Now we can create custom args for overrides.
2020-01-12 19:38:22 +00:00
adisbladis
0d5719df26
Add IFD based fallback for fromTOML 2020-01-11 23:33:40 +00:00
adisbladis
2f60530909
poetry: 1.0.1 -> 1.0.2 2020-01-10 16:02:52 +00:00
adisbladis
151bede3c4
Gitignore result symlinks 2020-01-10 14:02:32 +00:00
adisbladis
152322479d
poetry: 1.0.0 -> 1.0.1 2020-01-10 14:01:54 +00:00
adisbladis
7d8722a799
poetry: 1.0.0 -> 1.0.1 2020-01-10 13:01:38 +00:00
adisbladis
31a2bf6216
Always add setuptools_scm as a build input
Adding overrides is an uphill battle we are never going to win and
poetry2nix should try to attempt to make things "just work" to the
largest extent possible.

This only increases the build closures slightly while making
poetry2nix much easier to use.

setuptools_scm itself does not have any dependencies so will not cause
compatibility issues.
2020-01-10 13:01:33 +00:00
Roberto Di Remigio
95fa75b48a
Add some more overrides for setuptools-scm 2020-01-09 22:04:08 +01:00
adisbladis
62f5566c6d
nixpkgs-fmt fixup 2020-01-09 14:07:36 +00:00
Roberto Di Remigio
486879a3fa Add setuptools_scm build input for black (#28)
Add setuptools_scm build input for black
2020-01-09 13:59:31 +00:00
adisbladis
f394798d72
Add full operator support 2020-01-09 12:48:07 +00:00
adisbladis
c1ce6163be
Implement more operators 2020-01-09 12:18:38 +00:00
adisbladis
70c6964368
Merge pull request #25 from nix-community/eggs
Add support for eggs
2020-01-08 14:16:39 +00:00
adisbladis
cebf3ced84
Add support for eggs 2020-01-08 14:03:01 +00:00
adisbladis
c81412189e
overrides: Include cython for numpy 2020-01-08 14:00:41 +00:00
adisbladis
b33fd6987a
poetry: Don't propagate anything via PYTHONPATH 2020-01-04 19:29:17 +00:00
adisbladis
e20d2311a1
poetry: Don't add dependencies to PYTHONPATH
They get picked up by child processes of poetry which for example
leads to the wrong version of pip being used by `poetry install`.
2020-01-04 17:49:36 +00:00
adisbladis
2831d5e3e8
nixpkgs-fmt all the things 2020-01-02 22:23:07 +00:00
adisbladis
f73807d3dc
Add missing test files 2020-01-02 22:02:56 +00:00
adisbladis
45ab57b0e3
Bump version to 1.1.0 2020-01-02 21:57:35 +00:00
adisbladis
e9e5ce266e
Allow taking functors as overlays
This allows for making the default overrides customisable by exposing
them as a set with an override function.
2020-01-02 21:56:08 +00:00
adisbladis
03d439fed3
Remove hard-coded known build systems
We can attempt to dynamically fetch this from the python package set instead.
2020-01-02 18:27:01 +00:00
adisbladis
9b33e9e3b6
Make overrides export the overlay function
This is preparation work for providing a function that allows
customising the overrides.
2020-01-02 18:07:14 +00:00
adisbladis
e121613551
Fix nixpkgs-fmt 2020-01-01 18:31:00 +00:00
adisbladis
c540d55971
Use lib.composeExtensions instead of hacky bespoke overlay implementation 2020-01-01 18:27:36 +00:00
adisbladis
b1d8664d67
Re-enable tests on 19.09 2020-01-01 18:11:14 +00:00
adisbladis
589dd0617a
Fix nixpkgs-fmt 2020-01-01 18:01:11 +00:00
adisbladis
6649395d84
Add doc to tests 2020-01-01 18:01:04 +00:00
adisbladis
2c576409be
Add documentation output 2020-01-01 17:59:19 +00:00
adisbladis
4c24b3d49e
Add Nixdoc compatible docstrings 2020-01-01 17:49:12 +00:00
adisbladis
927ae249ef
Get license information from nixpkgs lib 2020-01-01 17:03:23 +00:00
adisbladis
c499f3b342
Change meta.licenses to meta meta.license 2020-01-01 16:44:56 +00:00
adisbladis
ee539134fe
Add all required meta attrs for poetry 2020-01-01 14:32:29 +00:00
adisbladis
5057685f04
Fix stripStr on Darwin
See https://github.com/NixOS/nix/issues/1537
2020-01-01 14:32:24 +00:00
adisbladis
7b20b192a2
Use python.interpreter instead of reconstructing interpreter path 2019-12-31 22:49:39 +00:00