mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-09-21 04:49:01 +02:00
commit
1600026004
|
@ -1,36 +1,62 @@
|
||||||
{ lib, fetchFromGitHub, python3Packages, sqlite, which }:
|
{
|
||||||
|
lib,
|
||||||
|
fetchFromGitHub,
|
||||||
|
python3,
|
||||||
|
sqlite,
|
||||||
|
which,
|
||||||
|
}:
|
||||||
|
|
||||||
python3Packages.buildPythonApplication rec {
|
python3.pkgs.buildPythonApplication rec {
|
||||||
pname = "s3ql";
|
pname = "s3ql";
|
||||||
version = "4.0.0";
|
version = "5.1.3";
|
||||||
|
pyproject = true;
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = pname;
|
owner = "s3ql";
|
||||||
repo = pname;
|
repo = "s3ql";
|
||||||
rev = "refs/tags/release-${version}";
|
rev = "refs/tags/s3ql-${version}";
|
||||||
sha256 = "sha256-7N09b7JwMPliuyv2fEy1gQYaFCMSSvajOBPhNL3DQsg=";
|
hash = "sha256-8vGW0Kl6hDTY+9mTnm2S659PZ/9gl90d2tXxKIIFimo=";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeCheckInputs = [ which ] ++ (with python3Packages; [ cython pytest pytest-trio ]);
|
build-system = with python3.pkgs; [ setuptools ];
|
||||||
propagatedBuildInputs = with python3Packages; [
|
|
||||||
sqlite apsw pycrypto requests defusedxml dugong
|
nativeBuildInputs = [ which ] ++ (with python3.pkgs; [ cython ]);
|
||||||
google-auth google-auth-oauthlib trio pyfuse3
|
|
||||||
|
propagatedBuildInputs = with python3.pkgs; [
|
||||||
|
apsw
|
||||||
|
cryptography
|
||||||
|
defusedxml
|
||||||
|
dugong
|
||||||
|
google-auth
|
||||||
|
google-auth-oauthlib
|
||||||
|
pyfuse3
|
||||||
|
requests
|
||||||
|
sqlite
|
||||||
|
trio
|
||||||
|
];
|
||||||
|
|
||||||
|
nativeCheckInputs = with python3.pkgs; [
|
||||||
|
pytest-trio
|
||||||
|
pytestCheckHook
|
||||||
];
|
];
|
||||||
|
|
||||||
preBuild = ''
|
preBuild = ''
|
||||||
${python3Packages.python.pythonOnBuildForHost.interpreter} ./setup.py build_cython build_ext --inplace
|
${python3.pkgs.python.pythonOnBuildForHost.interpreter} ./setup.py build_cython build_ext --inplace
|
||||||
'';
|
'';
|
||||||
|
|
||||||
checkPhase = ''
|
preCheck = ''
|
||||||
# Removing integration tests
|
export HOME=$(mktemp -d)
|
||||||
rm tests/t{4,5,6}_*
|
|
||||||
pytest tests
|
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
pythonImportsCheck = [ "s3ql" ];
|
||||||
|
|
||||||
|
pytestFlagsArray = [ "tests/" ];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "A full-featured file system for online data storage";
|
description = "A full-featured file system for online data storage";
|
||||||
homepage = "https://github.com/s3ql/s3ql/";
|
homepage = "https://github.com/s3ql/s3ql/";
|
||||||
license = licenses.gpl3;
|
changelog = "https://github.com/s3ql/s3ql/releases/tag/s3ql-${version}";
|
||||||
|
license = licenses.gpl3Only;
|
||||||
maintainers = with maintainers; [ rushmorem ];
|
maintainers = with maintainers; [ rushmorem ];
|
||||||
platforms = platforms.linux;
|
platforms = platforms.linux;
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue