Steve Purcell
71cdd20018
Remove "path" dependencies in indirectly referenced packages
2020-02-18 15:58:31 +13: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
7170aad633
Add Pypy support ( #40 )
2020-01-18 20:29:07 +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
301760e845
Remove getAttrDefault
...
Nix has built-in syntax for this operation, so lets use it.
2020-01-13 00:27:10 +00:00
adisbladis
f394798d72
Add full operator support
2020-01-09 12:48:07 +00:00
adisbladis
2831d5e3e8
nixpkgs-fmt all the things
2020-01-02 22:23:07 +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
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
589dd0617a
Fix nixpkgs-fmt
2020-01-01 18:01:11 +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
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