git.iko.soy/typeable/nixpkgs
on master help sign in
pythonPackages.decorator: fix Python 2 build
commit686274ea62caf12ca5181e8979e3fc52233402ed authorKonrad Borowski <konrad@borowski.pw> dateTue 18 Feb 2020, 13:55 (7 years ago) parent82a6834
1 file changed+7−3
pkgs/development/python-modules/decorator/default.nix+7−3
pkgs/development/python-modules/decorator/default.nix+7−3
@@ -1,5 +1,6 @@
11{ lib
22, buildPythonPackage
3+, fetchpatch
34, fetchPypi
45}:
56
@@ -12,9 +13,12 @@ buildPythonPackage rec {
1213 sha256 = "54c38050039232e1db4ad7375cfce6748d7b41c29e95a081c8a6d2c30364a2ce";
1314 };
1415
15− postPatch = ''
16− substituteInPlace src/tests/test.py --replace "DocumentationTestCase" "NoDocumentation"
17− '';
16+ patches = [
17+ (fetchpatch {
18+ url = https://github.com/micheles/decorator/commit/3265f2755d16c0a3dfc9f1feee39722ddc11ee80.patch;
19+ sha256 = "1q5nmff30vccqq5swf2ivm8cn7x3lhz8c9qpj0zddgs2y7fw8syz";
20+ })
21+ ];
1822
1923 meta = with lib; {
2024 homepage = https://pypi.python.org/pypi/decorator;