diff options
author | Konrad Borowski <konrad@borowski.pw> | 2020-02-18 13:55:56 +0100 |
---|---|---|
committer | Jon <jonringer@users.noreply.github.com> | 2020-02-19 17:34:31 -0800 |
commit | 686274ea62caf12ca5181e8979e3fc52233402ed (patch) | |
tree | 551783e607bc245f2bb0b85f671a7e89c808aa47 | |
parent | 82a6834e3b1ae343fed1d9495943fba71d6759fa (diff) | |
download | nixpkgs-686274ea62caf12ca5181e8979e3fc52233402ed.tar nixpkgs-686274ea62caf12ca5181e8979e3fc52233402ed.tar.gz nixpkgs-686274ea62caf12ca5181e8979e3fc52233402ed.tar.bz2 nixpkgs-686274ea62caf12ca5181e8979e3fc52233402ed.tar.lz nixpkgs-686274ea62caf12ca5181e8979e3fc52233402ed.tar.xz nixpkgs-686274ea62caf12ca5181e8979e3fc52233402ed.tar.zst nixpkgs-686274ea62caf12ca5181e8979e3fc52233402ed.zip |
pythonPackages.decorator: fix Python 2 build
-rw-r--r-- | pkgs/development/python-modules/decorator/default.nix | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/pkgs/development/python-modules/decorator/default.nix b/pkgs/development/python-modules/decorator/default.nix index f23d5929192..efdd5023a24 100644 --- a/pkgs/development/python-modules/decorator/default.nix +++ b/pkgs/development/python-modules/decorator/default.nix @@ -1,5 +1,6 @@ { lib , buildPythonPackage +, fetchpatch , fetchPypi }: @@ -12,9 +13,12 @@ buildPythonPackage rec { sha256 = "54c38050039232e1db4ad7375cfce6748d7b41c29e95a081c8a6d2c30364a2ce"; }; - postPatch = '' - substituteInPlace src/tests/test.py --replace "DocumentationTestCase" "NoDocumentation" - ''; + patches = [ + (fetchpatch { + url = https://github.com/micheles/decorator/commit/3265f2755d16c0a3dfc9f1feee39722ddc11ee80.patch; + sha256 = "1q5nmff30vccqq5swf2ivm8cn7x3lhz8c9qpj0zddgs2y7fw8syz"; + }) + ]; meta = with lib; { homepage = https://pypi.python.org/pypi/decorator; |