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";
|
2022-08-21 13:32:41 +00:00
|
|
|
version = "4.0.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = pname;
|
|
|
|
repo = pname;
|
2022-08-21 13:32:41 +00:00
|
|
|
rev = "refs/tags/release-${version}";
|
|
|
|
sha256 = "sha256-7N09b7JwMPliuyv2fEy1gQYaFCMSSvajOBPhNL3DQsg=";
|
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;
|
|
|
|
};
|
|
|
|
}
|