Commit Graph

28 Commits

Author SHA1 Message Date
adisbladis
e0816431a2 treewide: Pass self when overriding Python
Otherwise references to the Python interpreter inside the set are wrong, as demonstrated by:
``` nix
with import <nixpkgs> { };
let
  python' = python3.override {
    packageOverrides = final: prev: { requests = prev.requests.overridePythonAttrs(old: { version = "1337";  }); };
  };
in python'.pkgs.python.pkgs.requests
```
which returns the _non_ overriden requests.

And the same with `self`:
```
with import <nixpkgs> { };
let
  python' = python3.override {
    self = python';
    packageOverrides = final: prev: { requests = prev.requests.overridePythonAttrs(old: { version = "1337";  }); };
  };
in python'.pkgs.python.pkgs.requests
```
which returns the overriden requests.

This can manifest itself as file collisions when constructing environments or as subtly incorrect dependency graphs.
2024-08-03 12:18:56 +12:00
Martin Weinelt
d7876ccf9e haxor-news: fix click fetcher 2023-09-27 15:34:44 +02:00
Vladimír Čunát
9312c54bd0
treewide: drop a test in click 7.1.2
Man, copy&paste to five places is just great :-/

The referenced upstream patch should fix the compatibility,
but it won't apply cleanly to this version, so I dropped the test.
2023-08-07 17:04:03 +02:00
Robert Schütz
b3cd1dfb17 haxor-news: use SRI hashes 2023-03-09 15:43:05 -08:00
Guillaume Girol
33afbf39f6 treewide: switch to nativeCheckInputs
checkInputs used to be added to nativeBuildInputs. Now we have
nativeCheckInputs to do that instead. Doing this treewide change allows
to keep hashes identical to before the introduction of
nativeCheckInputs.
2023-01-21 12:00:00 +00:00
Markus S. Wamser
c9d167f174 pkgs.applications: remove unused args 2022-10-12 16:00:16 +02:00
Winter
19adc3341c treewide: migrate to pythonPackages.unittestCheckHook 2022-08-13 14:09:43 -04:00
Robert Schütz
6f432760f6 haxor-news: use click 7.1.2 2022-06-07 16:39:06 +00:00
Frederik Rietdijk
ae18d68b6b python2.pkgs: move expressions into python2-modules/ folder
Another step in further separating python2 from python3.
2022-01-16 10:00:16 +01:00
legendofmiracles
34dad80816
haxor-news: fix build 2021-11-04 20:07:20 -06:00
Sandro Jäckel
183c7ebcae
pythonPackages: normalise prompt_toolkit 2021-07-23 16:36:39 +02:00
Pavol Rusnak
a6ce00c50c
treewide: remove stdenv where not needed 2021-01-25 18:31:47 +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
Jonathan Ringer
7543833ccf haxor-news: use python3, fix build 2020-11-03 07:35:35 -08:00
Michael Reilly
84cf00f980
treewide: Per RFC45, remove all unquoted URLs 2020-04-10 17:54:53 +01:00
Matthias Beyer
f1f4f38909 Revert "Remove maintainership"
I'm baaaaack!

This patch reverts my patch where I removed myself as maintainer because
of my traveling. I'm back now and I want to maintain these packages
again.

This reverts commit ce1c1e3093.
2019-02-20 19:57:34 +01:00
Robert Schütz
dae8dfd69f haxor-news: use patch to allow newer click version 2019-02-03 17:31:49 +01:00
Frederik Rietdijk
f0b49c4d10 python.pkgs.prompt_toolkit: always use 1 with py2 and 2 with py3 2018-11-21 12:38:54 +01:00
Chris Ostrouchov
d69246709f pythonPackages.prompt_toolkit: 1.0.15 -> 2.0.7
Created a version to prompt_toolkit_1 for legacy ipython
2018-11-21 12:38:54 +01:00
volth
52f53c69ce pkgs/*: remove unreferenced function arguments 2018-07-21 02:48:04 +00:00
Matthias Beyer
ce1c1e3093 Remove maintainership
With this patch I remove myself as a maintainer for all packages I
currently maintain.

This is due the fact that I will be basically off the grid from May 2018
until early 2019, as I will be on a trip through north america.

I will revert this patch as soon as I'm back, as I plan to continue
contributing to nixpkgs then.
But as I cannot maintain anything during that time, I'd like to get this
patch merged.

Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2018-04-06 10:57:19 +02:00
Matthias Beyer
70c031d300 haxor-news: Disable tests
Tests fail, reason unknown.
But the program works as expected.
2018-02-21 14:28:42 +01:00
Frederik Rietdijk
670c194dab haxor-news: 0.4.2 -> 0.4.3
For some reason tests are failing. Note they were already failing before
this update.
2017-12-31 13:55:27 +01:00
Silvan Mosberger
f5fa5fa4d6 pkgs: refactor needless quoting of homepage meta attribute (#27809)
* pkgs: refactor needless quoting of homepage meta attribute

A lot of packages are needlessly quoting the homepage meta attribute
(about 1400, 22%), this commit refactors all of those instances.

* pkgs: Fixing some links that were wrongfully unquoted in the previous
commit

* Fixed some instances
2017-08-01 22:03:30 +02:00
Frederik Rietdijk
ef4442e827 Python: replace requests2 with requests tree-wide
See f63eb58573

The `requests2` attribute now throws an error informing that `requests`
should be used instead.
2017-05-07 12:56:09 +02:00
Matthias Beyer
12244f51f9 haxor-news: 0.4.1 -> 0.4.2 2017-04-26 09:53:53 +02:00
Matthias Beyer
95d6480199 haxor-news: 0.3.1 -> 0.4.1 2017-01-04 16:29:30 +01:00
Matthias Beyer
5fdc54387e haxor-news: init at 0.3.1 2016-04-23 13:55:55 +02:00