diff options
author | Martin Weinelt <mweinelt@users.noreply.github.com> | 2023-05-21 17:31:57 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-21 17:31:57 +0200 |
commit | a02aaf96d1faedc7899d5359b5eff173ffbfca78 (patch) | |
tree | 361cad99a8ce261747b4687de66dc7da327ac38a | |
parent | cb1bce2e1c2eb52708ad815a02e42802dd38ace9 (diff) | |
parent | 999652eb33fc84ac62fe85745ca240a84677b785 (diff) |
Merge pull request #233253 from figsoda/fetchpypi
doc/python: remove usages of `fetchPypi` aliases
-rw-r--r-- | doc/languages-frameworks/python.section.md | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/doc/languages-frameworks/python.section.md b/doc/languages-frameworks/python.section.md index 5c281d6d86008..9cd80b9385428 100644 --- a/doc/languages-frameworks/python.section.md +++ b/doc/languages-frameworks/python.section.md @@ -411,7 +411,7 @@ with import <nixpkgs> {}; version = "0.10.0"; format = "setuptools"; - src = python311.pkgs.fetchPypi { + src = fetchPypi { inherit pname version; hash = "sha256-CP3V73yWSArRHBLUct4hrNMjWZlvaaUlkpm1QP66RWA="; }; @@ -1229,7 +1229,7 @@ with import <nixpkgs> {}; packageOverrides = self: super: { pandas = super.pandas.overridePythonAttrs(old: rec { version = "0.19.1"; - src = super.fetchPypi { + src = fetchPypi { pname = "pandas"; inherit version; hash = "sha256-JQn+rtpy/OA2deLszSKEuxyttqBzcAil50H+JDHUdCE="; @@ -1286,6 +1286,7 @@ specifying an interpreter version), like this: ```nix { lib , python3 +, fetchPypi }: python3.pkgs.buildPythonApplication rec { @@ -1293,7 +1294,7 @@ python3.pkgs.buildPythonApplication rec { version = "2.7.9"; format = "setuptools"; - src = python3.pkgs.fetchPypi { + src = fetchPypi { inherit pname version; hash = "sha256-Pe229rT0aHwA98s+nTHQMEFKZPo/yw6sot8MivFDvAw="; }; |