adisbladis
01f4b9c597
site-packages fixup hook: Also remove LICENSE files
...
Reported privately by @matthewcroughan.
2022-09-07 07:55:10 +12:00
Sem Mulder
e4a98cf325
Reset PYTHONPATH before running Python script in hooks
2022-05-10 08:14:08 +12:00
Sem Mulder
59a79de540
Don't change format of pyproject.toml when removing special dependencies
...
This is needed because Scipy parses pyproject.toml by hand, under
the assumption of one dependency per line.
2022-05-10 08:14:08 +12:00
adisbladis
31effa4e4e
Add hook to remove normal files from site-packages
...
This is a fairly common packaging mistake that it's better that we solve in a hook than in one-by-one in overrides.
Normal files in site-packages isn't always a mistake, so we can't clean them up wholesale, but we can clean up some common mistakes.
2022-02-05 21:50:20 +12:00
Phillip Cloud
2fed7bc910
pip: remove restriction
2021-11-08 08:07:04 -05:00
adisbladis
d460ed2be1
Fix cross compilation support in hooks
2020-11-27 16:14:19 +01:00
adisbladis
98e0220502
Use build packages in setup hook
...
https://github.com/NixOS/nixpkgs/pull/104201 broke this.
2020-11-26 20:28:09 +01:00
adisbladis
52a484be33
Reformat with nixpkgs-fmt 1.0.0
2020-10-01 19:08:57 +02:00
adisbladis
b6f9670d56
overrides: Remove condition from wheel override
2020-08-17 05:02:19 +02:00
adisbladis
db06bdd6e7
Format with nixpkgs-fmt 0.9
2020-05-19 21:06:02 +01:00
adisbladis
4ebbfdacd1
nixpkgs-fmt broke it's format yet again
2020-04-29 14:12:59 +01:00
adisbladis
b9221f61b5
Automatically build most packages without passing format param
...
We should never have to use `format = "setuptools"` since pip can
_also_ handle setuptools packages.
This uses a custom pipBuildHook that removes pyproject.toml in case
there is also a setup.py in the same sources.
2020-04-01 00:14:30 +01:00
adisbladis
f7e435407e
nixpkgs-fmt all the things (again...)
2020-03-14 23:13:51 +00:00
adisbladis
090e2dd957
Add fixup hook
...
This hook should fix common mistakes like installing `tests` in
site-packages which leads to collisions.
2020-02-28 19:45:23 +00:00
adisbladis
0367b93492
Turn pyproject.toml patching into a hook
...
We should not be setting pre/post phases as it's counter intuitive
when working with overrides.
2020-02-23 14:37:01 +00:00