Pavol Rusnak
a6ce00c50c
treewide: remove stdenv where not needed
2021-01-25 18:31:47 +01:00
Pavol Rusnak
a4bbfba80d
pkgs/development/python-modules: stdenv.lib -> lib
2021-01-24 01:29:22 +01:00
Profpatsch
4a7f99d55d
treewide: with stdenv.lib; in meta -> with lib;
...
Part of: https://github.com/NixOS/nixpkgs/issues/108938
meta = with stdenv.lib;
is a widely used pattern. We want to slowly remove
the `stdenv.lib` indirection and encourage people
to use `lib` directly. Thus let’s start with the meta
field.
This used a rewriting script to mostly automatically
replace all occurances of this pattern, and add the
`lib` argument to the package header if it doesn’t
exist yet.
The script in its current form is available at
https://cs.tvl.fyi/depot@2f807d7f141068d2d60676a89213eaa5353ca6e0/-/blob/users/Profpatsch/nixpkgs-rewriter/default.nix
2021-01-11 10:38:22 +01:00
Arnout Engelen
63484ff09d
python3Packages.pytest: remove unreproducible test artifacts from output
...
Running the tests produced some unreproducible artifacts from the
output directory. This cleans them up afterwards.
2020-12-28 22:01:09 +01:00
R. RyanTM
e552d657c3
python37Packages.pytest_6: 6.1.1 -> 6.1.2
2020-11-06 12:01:57 -08:00
R. RyanTM
2142fb3fee
python37Packages.pytest_6: 6.0.1 -> 6.1.1
2020-10-16 09:52:55 -07:00
Frederik Rietdijk
33ddfcb8d9
python3Packages.pytest: 4.6.9 -> 4.6.11
2020-08-30 09:11:01 +02:00
Jonathan Ringer
2b9faf7def
python3Packages.pytest_5: init at 5.4.3
2020-08-16 17:44:59 -07:00
Jonathan Ringer
8e9060711a
pytest: fix dependencies, refactor
2020-08-16 12:42:02 -07:00
Frederik Rietdijk
cf7d5944b5
python: pytest: 5.4.3 -> 6.0.1
2020-08-16 19:31:13 +02:00
Frederik Rietdijk
7869150bd4
python: pytest: 5.4.2 -> 5.4.3
2020-06-06 08:34:58 +02:00
Jonathan Ringer
ac2732e660
python2Packages.pytest: 4.6.8 -> 4.6.9
2020-05-11 22:13:16 +02:00
Frederik Rietdijk
c7f5c67872
python3Packages.pytest: does not need mock
2020-05-11 22:13:16 +02:00
Frederik Rietdijk
178bcf6d8b
python3Packages.pytest: 5.4.1 -> 5.4.2
2020-05-11 22:13:13 +02:00
Jonathan Ringer
adb485bb93
python3Packages.pytest: 5.3.5 -> 5.4.1
2020-05-11 22:12:08 +02:00
Domen Kožar
a63762ace8
Merge pull request #72091 from xwvvvvwx/reproducible-pytest4
...
python3Packages.pytest4: deterministic bytecode
2020-04-22 14:05:09 +02:00
Michael Reilly
84cf00f980
treewide: Per RFC45, remove all unquoted URLs
2020-04-10 17:54:53 +01:00
Frederik Rietdijk
c67ea834c1
python: pytest: 5.3.2 -> 5.3.5
2020-01-30 21:28:57 +01:00
Frederik Rietdijk
b95c9a3bfd
python: pytest: 4.6.7 -> 4.6.8
2019-12-30 16:46:54 +01:00
Frederik Rietdijk
f286d1daca
python: pytest: 5.2.4 -> 5.3.2
2019-12-30 16:46:46 +01:00
Frederik Rietdijk
1cee548428
python: pytest: 4.6.6 -> 4.6.7
2019-12-15 16:23:16 +01:00
Frederik Rietdijk
366a373e35
python: pytest: 5.2.2 -> 5.2.4
2019-11-22 08:37:22 +01:00
Frederik Rietdijk
fbe93c074b
python: pytest: 5.2.1 -> 5.2.2
2019-11-12 14:57:21 +01:00
David Terry
5cd5661378
python3Packages.pytest4: deterministic bytecode
...
For reasons that are not clear to me, the pytest4 check phase produces a
lot of non-deterministic bytecode files. This PR turns off bytecode
generation and disables a test that force enables bytecode generation.
2019-10-27 14:21:57 +01:00
Frederik Rietdijk
2ea05d40d4
python: pytest: 4.6.5 -> 4.6.6
2019-10-18 09:54:01 +02:00
Frederik Rietdijk
bff8343481
python: pytest: 5.1.0 -> 5.2.1
2019-10-18 09:53:55 +02:00
Maximilian Bosch
5f1c02a1c9
python2Packages.pytest_5: disable build
...
`pytest_5` only supports python3[1], however the python2 build was enabled by
separating pytest_4 and pytest_5 into two different attributes.
ZHF #68361
[1] https://docs.pytest.org/en/latest/py27-py34-deprecation.html
2019-09-15 16:02:10 +02:00
Daniel Schaefer
cbab4663f3
paperless: Use pytest_4 in django-crispy-forms
...
Doesn't build with pytest_5
2019-09-14 14:20:50 +02:00
Frederik Rietdijk
f7e28bf5d8
Split buildPythonPackage into setup hooks
...
This commit splits the `buildPythonPackage` into multiple setup hooks.
Generally, Python packages are built from source to wheels using `setuptools`.
The wheels are then installed with `pip`. Tests were often called with
`python setup.py test` but this is less common nowadays. Most projects
now use a different entry point for running tests, typically `pytest`
or `nosetests`.
Since the wheel format was introduced more tools were built to generate these,
e.g. `flit`. Since PEP 517 is provisionally accepted, defining a build-system
independent format (`pyproject.toml`), `pip` can now use that format to
execute the correct build-system.
In the past I've added support for PEP 517 (`pyproject`) to the Python
builder, resulting in a now rather large builder. Furthermore, it was not possible
to reuse components elsewhere. Therefore, the builder is now split into multiple
setup hooks.
The `setuptoolsCheckHook` is included now by default but in time it should
be removed from `buildPythonPackage` to make it easier to use another hook
(curently one has to pass in `dontUseSetuptoolsCheck`).
2019-09-06 15:18:45 +02:00
Frederik Rietdijk
b3ddab852a
pythonPackages.pytest: 4.6.5 -> 5.1.0 in case of Python 3
2019-08-18 11:48:40 +02:00
Frederik Rietdijk
1615ce80b1
pythonPackages.pytest: 4.6.3 -> 4.6.5
2019-08-18 11:48:40 +02:00
Frederik Rietdijk
dcf786eb23
pythonPackages.pytest: remove old version
...
Follow-up to c0dc032e42
2019-08-18 11:48:40 +02:00
Chris Ostrouchov
85e027d914
pythonPackages.pytest_3: refactor fix broken build of old package
2019-07-17 10:02:03 +02:00
leo60228
b9ea613f43
pytest: disable tests on pypy
...
Bug in tests. See https://github.com/pytest-dev/pytest/issues/3460
2019-07-03 09:18:12 +02:00
Mario Rodas
1a7ffb4140
pythonPackages.pytest: 4.2.1 -> 4.6.3
2019-06-18 11:11:16 +02:00
Frederik Rietdijk
b3febfb850
python.pkgs.pytest_3: keep older version
...
because not all test suites are compatible with 4 yet.
2019-02-17 14:40:48 +01:00
Frederik Rietdijk
ee38a0d183
python: pytest: 3.9.3 -> 4.2.1
2019-02-17 14:40:48 +01:00
Robert Schütz
387d837928
Revert "python: pytest_37: init at 3.7.4" ( #54429 )
...
This reverts commit eb2d56cb27
since python.pkgs.pytest_37 is no longer used.
2019-01-21 22:48:12 +01:00
Franz Pletz
eb2d56cb27
python: pytest_37: init at 3.7.4
...
Needed at least by pyjwt.
2018-11-22 22:27:29 +01:00
Frederik Rietdijk
917400bcff
Revert "Python: reduce amount of warnings when building with buildPython*
"
...
Turns out that many packages' testsuites rely on the default warnings setup.
This reverts commit c1e003ff2f
.
2018-11-12 18:55:50 +01:00
Frederik Rietdijk
c1e003ff2f
Python: reduce amount of warnings when building with buildPython*
...
By default all warnings were printed. This occasionally resulted in
a lot of warnings leading to builds being killed.
This commit reduces the amount of warnings printed.
2018-11-04 10:19:48 +01:00
Frederik Rietdijk
e3e1a53118
python: pytest: 3.9.2 -> 3.9.3
2018-10-30 20:44:48 +01:00
Frederik Rietdijk
5db047243c
python: pytest: 3.7.4 -> 3.9.2
2018-10-24 20:05:44 +02:00
Mario Rodas
5143e30361
pythonPackages.pytest: pathlib2 is only required for python<3.6
2018-10-18 11:07:02 +02:00
Benjamin Hipple
b721a1b9a9
pytest: add license
2018-10-09 21:23:37 -04:00
Frederik Rietdijk
20a4a4b593
pythonPackages.pytest.setupHook: run in correct phase
...
It was reported that the 2nd solution wasn't working as expected because
it was ran in the wrong phase.
This commit creates a new phase, in between the installCheckPhase and distPhase.
2018-09-04 19:18:13 +02:00
Frederik Rietdijk
8a6b20cbad
python: pytest: 3.7.2 -> 3.7.4
2018-09-01 10:41:37 +02:00
Frederik Rietdijk
617c8ee925
python: pytest: 3.7.1 -> 3.7.2
2018-08-25 18:07:15 +02:00
Frederik Rietdijk
974d04eec6
python: pytest: 3.6.3 -> 3.7.1
2018-08-25 07:38:23 +02:00
Frederik Rietdijk
9267b477f1
python.pkgs.pytest.setupHook: fix cache name, fixes #40273
...
The cache is not named `.pytest-cache` but `.pytest_cache`.
2018-08-05 11:56:21 +02:00