2021-02-05 17:12:51 +00:00
|
|
|
{ lib, fetchFromGitHub, python3Packages, sqlite, which }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
python3Packages.buildPythonApplication rec {
|
|
|
|
pname = "s3ql";
|
2021-12-06 16:07:01 +00:00
|
|
|
version = "3.8.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = pname;
|
|
|
|
repo = pname;
|
|
|
|
rev = "release-${version}";
|
2021-12-06 16:07:01 +00:00
|
|
|
sha256 = "0a6ll5vs7faj1klfz3j674399qfbhy3blp3c5wwsqvcdkpcjcx11";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-05-20 23:08:51 +00:00
|
|
|
checkInputs = [ which ] ++ (with python3Packages; [ cython pytest pytest-trio ]);
|
2020-04-24 23:36:52 +00:00
|
|
|
propagatedBuildInputs = with python3Packages; [
|
2021-05-20 23:08:51 +00:00
|
|
|
sqlite apsw pycrypto requests defusedxml dugong
|
|
|
|
google-auth google-auth-oauthlib trio pyfuse3
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
preBuild = ''
|
|
|
|
${python3Packages.python.interpreter} ./setup.py build_cython build_ext --inplace
|
|
|
|
'';
|
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
# Removing integration tests
|
|
|
|
rm tests/t{4,5,6}_*
|
|
|
|
pytest tests
|
|
|
|
'';
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "A full-featured file system for online data storage";
|
|
|
|
homepage = "https://github.com/s3ql/s3ql/";
|
|
|
|
license = licenses.gpl3;
|
|
|
|
maintainers = with maintainers; [ rushmorem ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|