diff options
author | Julien Moutinho <julm+nixpkgs@sourcephile.fr> | 2020-09-27 09:33:46 +0200 |
---|---|---|
committer | Julien Moutinho <julm+nixpkgs@sourcephile.fr> | 2021-03-13 13:06:06 +0100 |
commit | a9ce4c4a0ea0f6b92fdc44d530dbb889ce789595 (patch) | |
tree | 33d8c17ac75d4f2e1254da86fe471e1ebdddb09a /doc/languages-frameworks/python.section.md | |
parent | 0090fbbda5a546b67d1917288f2e533f15198e36 (diff) | |
download | nixpkgs-a9ce4c4a0ea0f6b92fdc44d530dbb889ce789595.tar nixpkgs-a9ce4c4a0ea0f6b92fdc44d530dbb889ce789595.tar.gz nixpkgs-a9ce4c4a0ea0f6b92fdc44d530dbb889ce789595.tar.bz2 nixpkgs-a9ce4c4a0ea0f6b92fdc44d530dbb889ce789595.tar.lz nixpkgs-a9ce4c4a0ea0f6b92fdc44d530dbb889ce789595.tar.xz nixpkgs-a9ce4c4a0ea0f6b92fdc44d530dbb889ce789595.tar.zst nixpkgs-a9ce4c4a0ea0f6b92fdc44d530dbb889ce789595.zip |
zerobin: 20160108 -> 1.0.5
Diffstat (limited to 'doc/languages-frameworks/python.section.md')
-rw-r--r-- | doc/languages-frameworks/python.section.md | 32 |
1 files changed, 18 insertions, 14 deletions
diff --git a/doc/languages-frameworks/python.section.md b/doc/languages-frameworks/python.section.md index 71193ed0cc0..1d5d9ebb7d7 100644 --- a/doc/languages-frameworks/python.section.md +++ b/doc/languages-frameworks/python.section.md @@ -1486,11 +1486,12 @@ If you need to change a package's attribute(s) from `configuration.nix` you coul nixpkgs.config.packageOverrides = super: { python = super.python.override { packageOverrides = python-self: python-super: { - zerobin = python-super.zerobin.overrideAttrs (oldAttrs: { - src = super.fetchgit { - url = "https://github.com/sametmax/0bin"; - rev = "a344dbb18fe7a855d0742b9a1cede7ce423b34ec"; - sha256 = "16d769kmnrpbdr0ph0whyf4yff5df6zi4kmwx7sz1d3r6c8p6xji"; + twisted = python-super.twisted.overrideAttrs (oldAttrs: { + src = super.fetchPipy { + pname = "twisted"; + version = "19.10.0"; + sha256 = "7394ba7f272ae722a74f3d969dcf599bc4ef093bc392038748a490f1724a515d"; + extension = "tar.bz2"; }; }); }; @@ -1498,9 +1499,11 @@ If you need to change a package's attribute(s) from `configuration.nix` you coul }; ``` -`pythonPackages.zerobin` is now globally overridden. All packages and also the -`zerobin` NixOS service use the new definition. Note that `python-super` refers -to the old package set and `python-self` to the new, overridden version. +`pythonPackages.twisted` is now globally overridden. +All packages and also all NixOS services that reference `twisted` +(such as `services.buildbot-worker`) now use the new definition. +Note that `python-super` refers to the old package set and `python-self` +to the new, overridden version. To modify only a Python package set instead of a whole Python derivation, use this snippet: @@ -1508,7 +1511,7 @@ this snippet: ```nix myPythonPackages = pythonPackages.override { overrides = self: super: { - zerobin = ...; + twisted = ...; }; } ``` @@ -1521,11 +1524,12 @@ Use the following overlay template: self: super: { python = super.python.override { packageOverrides = python-self: python-super: { - zerobin = python-super.zerobin.overrideAttrs (oldAttrs: { - src = super.fetchgit { - url = "https://github.com/sametmax/0bin"; - rev = "a344dbb18fe7a855d0742b9a1cede7ce423b34ec"; - sha256 = "16d769kmnrpbdr0ph0whyf4yff5df6zi4kmwx7sz1d3r6c8p6xji"; + twisted = python-super.twisted.overrideAttrs (oldAttrs: { + src = super.fetchPypi { + pname = "twisted"; + version = "19.10.0"; + sha256 = "7394ba7f272ae722a74f3d969dcf599bc4ef093bc392038748a490f1724a515d"; + extension = "tar.bz2"; }; }); }; |