This shouldn't be required and I think that these are actually
packaging bugs and not something that poetry2nix should really be
concerned with.
Closes#84
Also use the same source filter for path deps.
The default source filter currently filters:
- Filters gitignore (if it exists, non-recursive)
- Filters pycache/pyc files
- Uses cleanSourceFilter to filter out .git/.hg, .o/.so, editor backup files & nix result symlinks
This adds the convenience functions withDefaults and
withoutDefaults which simply wrap the provided argument in a list
either with or without the default poetry overrides.
Tests have also been adapted to make use of `withDefaults` where
appropriate.
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
This is not required for private repos where builtins.fetchGit would
suffice but _is_ required for Hydra (nixpkgs) where builtins.fetchGit is not allowed.
Drp `poetrylock` and `pyproject` mandatory arguments
without default values and drops `src` from `mkPoetryPyhon`.
Fix test invocations with invalid arguments.
- 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
Provides a `select` function that picks the most appropriate `.whl` file
based on platform, arch, python version and manylinux/OSX - version.
- Adds unit tests for pep425
- Adds test for manylinux support
- Fixes overrides: `passhtru` must be extended, not overwritten
- Don't strip python packages: this screws up manylinux binaries
This adds the following new tests:
- trivial: minimaltest case
- override-support: verify overriding
- common-pkgs-1/2: verify commonly downloaded pypi pkgs can be built
Also adds some overrides as needed by some of the
tested packages.