forked from mirrors/nixpkgs
trash-cli: fix build on Python 3.6
This commit is contained in:
parent
fd9c7b0d9a
commit
4576e8dddd
|
@ -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 ];
|
||||
|
|
Loading…
Reference in a new issue