2017-05-07 07:50:14 +01:00
|
|
|
{ stdenv, fetchzip, python3Packages, openssl, acl, fetchurl, pkgconfig, fuse, attr, which }:
|
2014-12-15 22:00:10 +00:00
|
|
|
|
2017-05-07 07:50:14 +01:00
|
|
|
let
|
|
|
|
|
|
|
|
# Old version needed for attic (backup program) due to breaking change in
|
|
|
|
# llfuse >= 0.42.
|
|
|
|
llfuse-0-41 = python3Packages.buildPythonPackage rec {
|
|
|
|
name = "llfuse-0.41.1";
|
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://pypi/l/llfuse/${name}.tar.bz2";
|
|
|
|
sha256 = "1imlqw9b73086y97izr036f58pgc5akv4ihc2rrf8j5h75jbrlaa";
|
|
|
|
};
|
2017-09-05 22:26:13 +01:00
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
|
|
|
buildInputs = with python3Packages; [ pytest fuse attr which ];
|
2017-05-07 07:50:14 +01:00
|
|
|
propagatedBuildInputs = with python3Packages; [ contextlib2 ];
|
|
|
|
checkPhase = ''
|
|
|
|
py.test
|
|
|
|
'';
|
|
|
|
# FileNotFoundError: [Errno 2] No such file or directory: '/usr/bin'
|
|
|
|
doCheck = false;
|
|
|
|
meta = {
|
|
|
|
description = "Python bindings for the low-level FUSE API";
|
|
|
|
homepage = https://code.google.com/p/python-llfuse/;
|
|
|
|
license = stdenv.lib.licenses.lgpl2Plus;
|
|
|
|
platforms = stdenv.lib.platforms.unix;
|
|
|
|
maintainers = with stdenv.lib.maintainers; [ bjornfor ];
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
in python3Packages.buildPythonApplication rec {
|
2015-06-21 05:47:40 +01:00
|
|
|
name = "attic-${version}";
|
|
|
|
version = "0.16";
|
2014-12-18 07:14:52 +00:00
|
|
|
namePrefix = "";
|
2014-12-15 22:00:10 +00:00
|
|
|
|
2014-12-24 11:07:19 +00:00
|
|
|
src = fetchzip {
|
2015-04-03 05:49:39 +01:00
|
|
|
name = "${name}-src";
|
2015-06-21 05:47:40 +01:00
|
|
|
url = "https://github.com/jborg/attic/archive/${version}.tar.gz";
|
|
|
|
sha256 = "008566hhsd3ck70ql0fdn4vaqjfcnf493gwd49d6294f8r7qn06z";
|
2014-12-18 07:14:52 +00:00
|
|
|
};
|
2014-12-15 22:00:10 +00:00
|
|
|
|
2014-12-18 07:39:11 +00:00
|
|
|
propagatedBuildInputs = with python3Packages;
|
2016-06-24 18:57:48 +01:00
|
|
|
[ cython msgpack openssl acl llfuse-0-41 ];
|
2014-12-15 22:00:10 +00:00
|
|
|
|
2014-12-17 21:55:28 +00:00
|
|
|
preConfigure = ''
|
2016-04-16 18:44:32 +01:00
|
|
|
export ATTIC_OPENSSL_PREFIX="${openssl.dev}"
|
2015-11-20 12:48:30 +00:00
|
|
|
substituteInPlace setup.py --replace "version=versioneer.get_version()" "version='${version}'"
|
2014-12-17 21:55:28 +00:00
|
|
|
'';
|
|
|
|
|
2014-12-15 22:00:10 +00:00
|
|
|
meta = with stdenv.lib; {
|
2015-06-21 05:47:40 +01:00
|
|
|
description = "A deduplicating backup program";
|
|
|
|
homepage = https://attic-backup.org;
|
2014-12-18 07:14:52 +00:00
|
|
|
license = licenses.bsd3;
|
2014-12-18 12:36:35 +00:00
|
|
|
maintainers = [ maintainers.wscott ];
|
|
|
|
platforms = platforms.unix; # Darwin and FreeBSD mentioned on homepage
|
2014-12-18 07:14:52 +00:00
|
|
|
};
|
2014-12-15 22:00:10 +00:00
|
|
|
}
|