Commit graph

66 commits

Author SHA1 Message Date
adisbladis
8504e52c27
fmt fixup 2020-01-28 20:04:44 +00:00
adisbladis
1ffabaa066
Prevent infinite recursion for setuptools-scm extras 2020-01-28 19:42:35 +00:00
adisbladis
2caffda3ef
Use the canonical name setuptools-scm
Nixpkgs calls this setuptools_scm which is a mismatch for pypi.

Create an alias so any setuptools-scm installed by a user impacts all packages.
2020-01-21 12:12:36 +00:00
adisbladis
b125af3789
Make dependency function variadic and passthru args
This will enable feature flags such as enableFoo to be added in an override.
2020-01-21 11:43:03 +00:00
adisbladis
7170aad633
Add Pypy support (#40) 2020-01-18 20:29:07 +00:00
adisbladis
224973c59c
Dont strip binary wheels 2020-01-17 18:06:09 +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
adisbladis
2f59f1db2a
Fix Egg support 2020-01-12 20:00:17 +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
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
adisbladis
cebf3ced84
Add support for eggs 2020-01-08 14:03:01 +00:00
adisbladis
4acf604723
Add support for local path dependencies 2019-12-29 13:20:35 +00:00
adisbladis
737ed5a372
Add Git support 2019-12-27 19:17:35 +00:00
Tobias Pflug
7a73ffdb36 Remove NIX_PYTHON_MANYLINUX
As per https://github.com/NixOS/nixpkgs/pull/75763 this environment
variable is not needed anymore. Instead python interpreters are now
assuming compatibility by default.
2019-12-16 16:47:51 +01:00
Andreas Rammhold
5741d9e59e
nixpkgs-fmt all the things 2019-12-16 15:03:49 +01:00
Tobias Pflug
84f27ee31d
Refactoring
- Extract utility functions to ./lib.nix
- Extract buildPythonPackage to ./mk-poetry-dep.nix
- Replace some functions with existing builtin functions
- Use lib.partition for python package splitting
- Drop package filtering on the top-level and leave it to pep425.nix
2019-12-16 15:03:49 +01:00