at 23.11-beta 37 lines 1.1 kB view raw
1{ lib, fetchFromGitHub, python3Packages, sqlite, which }: 2 3python3Packages.buildPythonApplication rec { 4 pname = "s3ql"; 5 version = "4.0.0"; 6 7 src = fetchFromGitHub { 8 owner = pname; 9 repo = pname; 10 rev = "refs/tags/release-${version}"; 11 sha256 = "sha256-7N09b7JwMPliuyv2fEy1gQYaFCMSSvajOBPhNL3DQsg="; 12 }; 13 14 nativeCheckInputs = [ which ] ++ (with python3Packages; [ cython pytest pytest-trio ]); 15 propagatedBuildInputs = with python3Packages; [ 16 sqlite apsw pycrypto requests defusedxml dugong 17 google-auth google-auth-oauthlib trio pyfuse3 18 ]; 19 20 preBuild = '' 21 ${python3Packages.python.pythonOnBuildForHost.interpreter} ./setup.py build_cython build_ext --inplace 22 ''; 23 24 checkPhase = '' 25 # Removing integration tests 26 rm tests/t{4,5,6}_* 27 pytest tests 28 ''; 29 30 meta = with lib; { 31 description = "A full-featured file system for online data storage"; 32 homepage = "https://github.com/s3ql/s3ql/"; 33 license = licenses.gpl3; 34 maintainers = with maintainers; [ rushmorem ]; 35 platforms = platforms.linux; 36 }; 37}