3
0
Fork 0
forked from mirrors/nixpkgs

trash-cli: fix build on Python 3.6

This commit is contained in:
Robert Helgesson 2017-06-03 00:37:48 +02:00
parent fd9c7b0d9a
commit 4576e8dddd
No known key found for this signature in database
GPG key ID: C3DB11069E65DC86

View file

@ -1,4 +1,4 @@
{ stdenv, fetchFromGitHub, coreutils
{ stdenv, fetchFromGitHub, fetchpatch, coreutils
, python3, python3Packages, substituteAll }:
assert stdenv.isLinux;
@ -21,6 +21,12 @@ python3Packages.buildPythonApplication rec {
df = "${coreutils}/bin/df";
libc = "${stdenv.cc.libc.out}/lib/libc.so.6";
})
# Fix build on Python 3.6.
(fetchpatch {
url = "https://github.com/andreafrancia/trash-cli/commit/a21b80d1e69783bb09376c3f60dd2f2a10578805.patch";
sha256 = "0w49rjh433sjfc2cl5a9wlbr6kcn9f1qg905qsyv7ay3ar75wvyp";
})
];
buildInputs = with python3Packages; [ nose mock ];