Commit graph

32 commits

Author SHA1 Message Date
adisbladis
c499f3b342
Change meta.licenses to meta meta.license 2020-01-01 16:44:56 +00:00
adisbladis
4acf604723
Add support for local path dependencies 2019-12-29 13:20:35 +00:00
adisbladis
bf48f272c1
Add CLI to supplement git hashes
This is not required for private repos where builtins.fetchGit would
suffice but _is_ required for Hydra (nixpkgs) where builtins.fetchGit is not allowed.
2019-12-28 21:45:51 +00:00
adisbladis
737ed5a372
Add Git support 2019-12-27 19:17:35 +00:00
adisbladis
908c9b8881
Restrucure overrides as composable overlays 2019-12-20 13:39:35 +00:00
Tobias Pflug
54b43703f9 nixpkgs-fmt formatting 2019-12-17 21:16:28 +01:00
Andreas Rammhold
903b4fcd2b fix mkPoetryPython 2019-12-17 14:50:58 +01:00
Andreas Rammhold
5c76155666 add mkPoetryEnv to create poetry python environments 2019-12-17 14:19:32 +01:00
Tobias Pflug
08eb9637aa Remove default values and drop src from mkPoetryPyhon
Drp `poetrylock` and `pyproject` mandatory arguments
without default values and drops `src` from `mkPoetryPyhon`.

Fix test invocations with invalid arguments.
2019-12-17 12:38:34 +01:00
Andreas Rammhold
d8fde74219
split mkPoetryPackage into mkPoetryPython and mkPoetryApplication 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
Tobias Pflug
29c93b1dc2
Add wheel file selection according to pep425
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
2019-12-16 15:02:41 +01:00
zimbatm
1528d54851
handle intreehooks buildsystem
This is necessary for the next version of poetry
2019-12-11 14:13:39 +01:00
zimbatm
310282154c
nixpkgs-fmt: format all the nix code 2019-12-11 13:31:22 +01:00
adisbladis
e194dd6590
Add empty license
poetry.lock does not contain licenses but it's sometimes expected by nixpkgs.
2019-11-27 20:25:05 +00:00
adisbladis
b20a61bed5
Make dependency attribute lookp case insensitive
And dependencies & dev-dependencies fields are both optional
2019-11-27 17:04:39 +00:00
Tobias Pflug
67602e51e1 Fixes pypi fetching
- The first letter path segment in the url needs to be lowercased

  https://files.pythonhosted.org/packages/source/S/sqlalchemy/SQLAlchemy-1.3.11.tar.gz
  vs
  https://files.pythonhosted.org/packages/source/s/sqlalchemy/SQLAlchemy-1.3.11.tar.gz

- Rename fetchPypi to fetchFromPypi just to make it clear that we are
  not using fetchPypi from nixpkgs
2019-11-27 17:20:04 +01:00
Frederik Rietdijk
cb67c624e5
simplify fetchPypi, remove need for overrides
We already have the name of the file that we need, so let's fetch it
directly instead of breaking it apart first, passing it to the Nixpkgs
fetchPypi, which would then put it together again.
2019-11-27 15:53:52 +00:00
adisbladis
eb2255ebaf
Add overlay files 2019-11-19 16:34:50 +00:00
adisbladis
95d3407bdb
Make build-system conditional
And other minor bug fixes
2019-11-18 23:39:20 +00:00
adisbladis
ff8d58af7d
Add PEP508 marker support
This is still experimental and may contain bugs
2019-11-16 12:57:43 +00:00
adisbladis
4d56dcce71
Add support for the python-versions field from poetry.lock 2019-10-16 15:36:52 +01:00
adisbladis
49055769cf poetry2nix can now build poetry itself 2019-10-16 11:04:24 +01:00
adisbladis
d485a1ab4a Support new upstream lock format 2019-10-15 17:56:18 +01:00
adisbladis
6f40e8507e
Pass self to python override
Fixes passthru attribute
f1ff85e61d
2019-07-05 13:14:14 +01:00
adisbladis
c2cc4afc1c
Add support for binary wheels
Though building from source still takes precedence (is this correct
behaviour?).
2019-06-29 18:43:32 +01:00
adisbladis
2751fd9707
Apply overrides to successfully build pretalx 2019-06-27 20:09:24 +01:00
adisbladis
e0e2a3f659
Properly fetch sdists with extension 2019-06-24 17:01:27 +01:00
adisbladis
b4abe49e04
Build packages using new files attribute 2019-06-24 14:44:00 +01:00
adisbladis
0f50d8bb3b
Pass attrs from mkPoetryPackage through to buildPythonApplication 2019-06-24 00:06:25 +01:00
adisbladis
642768eb65
Avoid version mixing by overriding pythonPackages 2019-06-23 00:33:38 +01:00
adisbladis
866b5e1c37
Initial commit 2019-06-17 18:43:38 +01:00