@@ -1487,11 +1487,12 @@ If you need to change a package's attribute(s) from `configuration.nix` you coul
14871487 nixpkgs.config.packageOverrides = super: {
14881488 python = super.python.override {
14891489 packageOverrides = python-self: python-super: {
1490− zerobin = python-super.zerobin.overrideAttrs (oldAttrs: {
1491− src = super.fetchgit {
1492− url = "https://github.com/sametmax/0bin";
1493− rev = "a344dbb18fe7a855d0742b9a1cede7ce423b34ec";
1494− sha256 = "16d769kmnrpbdr0ph0whyf4yff5df6zi4kmwx7sz1d3r6c8p6xji";
1490+ twisted = python-super.twisted.overrideAttrs (oldAttrs: {
1491+ src = super.fetchPipy {
1492+ pname = "twisted";
1493+ version = "19.10.0";
1494+ sha256 = "7394ba7f272ae722a74f3d969dcf599bc4ef093bc392038748a490f1724a515d";
1495+ extension = "tar.bz2";
14951496 };
14961497 });
14971498 };
@@ -1499,9 +1500,11 @@ If you need to change a package's attribute(s) from `configuration.nix` you coul
14991500 };
15001501```
15011502
1502−`pythonPackages.zerobin` is now globally overridden. All packages and also the
1503−`zerobin` NixOS service use the new definition. Note that `python-super` refers
1504−to the old package set and `python-self` to the new, overridden version.
1503+`pythonPackages.twisted` is now globally overridden.
1504+All packages and also all NixOS services that reference `twisted`
1505+(such as `services.buildbot-worker`) now use the new definition.
1506+Note that `python-super` refers to the old package set and `python-self`
1507+to the new, overridden version.
15051508
15061509To modify only a Python package set instead of a whole Python derivation, use
15071510this snippet:
@@ -1509,7 +1512,7 @@ this snippet:
15091512```nix
15101513 myPythonPackages = pythonPackages.override {
15111514 overrides = self: super: {
1512− zerobin = ...;
1515+ twisted = ...;
15131516 };
15141517 }
15151518```
@@ -1522,11 +1525,12 @@ Use the following overlay template:
15221525self: super: {
15231526 python = super.python.override {
15241527 packageOverrides = python-self: python-super: {
1525− zerobin = python-super.zerobin.overrideAttrs (oldAttrs: {
1526− src = super.fetchgit {
1527− url = "https://github.com/sametmax/0bin";
1528− rev = "a344dbb18fe7a855d0742b9a1cede7ce423b34ec";
1529− sha256 = "16d769kmnrpbdr0ph0whyf4yff5df6zi4kmwx7sz1d3r6c8p6xji";
1528+ twisted = python-super.twisted.overrideAttrs (oldAttrs: {
1529+ src = super.fetchPypi {
1530+ pname = "twisted";
1531+ version = "19.10.0";
1532+ sha256 = "7394ba7f272ae722a74f3d969dcf599bc4ef093bc392038748a490f1724a515d";
1533+ extension = "tar.bz2";
15301534 };
15311535 });
15321536 };