mirror of
https://github.com/CHN-beta/nixpkgs.git
synced 2026-01-12 02:40:31 +08:00
python312Packages.swh-storage: init at 3.1.0
This commit is contained in:
@@ -6,6 +6,7 @@
|
||||
python3Packages.swh-model
|
||||
python3Packages.swh-objstorage
|
||||
python3Packages.swh-scanner
|
||||
python3Packages.swh-storage
|
||||
python3Packages.swh-web-client
|
||||
],
|
||||
}:
|
||||
|
||||
100
pkgs/development/python-modules/swh-storage/default.nix
Normal file
100
pkgs/development/python-modules/swh-storage/default.nix
Normal file
@@ -0,0 +1,100 @@
|
||||
{
|
||||
lib,
|
||||
buildPythonPackage,
|
||||
fetchFromGitLab,
|
||||
setuptools,
|
||||
setuptools-scm,
|
||||
backports-entry-points-selectable,
|
||||
cassandra-driver,
|
||||
click,
|
||||
deprecated,
|
||||
flask,
|
||||
iso8601,
|
||||
mypy-extensions,
|
||||
psycopg,
|
||||
redis,
|
||||
tenacity,
|
||||
swh-core,
|
||||
swh-model,
|
||||
swh-objstorage,
|
||||
postgresql,
|
||||
postgresqlTestHook,
|
||||
pytest-aiohttp,
|
||||
pytest-mock,
|
||||
pytest-postgresql,
|
||||
pytest-shared-session-scope,
|
||||
pytest-xdist,
|
||||
pytestCheckHook,
|
||||
swh-journal,
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "swh-storage";
|
||||
version = "3.1.0";
|
||||
pyproject = true;
|
||||
|
||||
src = fetchFromGitLab {
|
||||
domain = "gitlab.softwareheritage.org";
|
||||
group = "swh";
|
||||
owner = "devel";
|
||||
repo = "swh-storage";
|
||||
tag = "v${version}";
|
||||
hash = "sha256-Bxwc8OccmqadLjHtmhToHBYHGkD7Fw3Cl3go9VLV/Bs=";
|
||||
};
|
||||
|
||||
build-system = [
|
||||
setuptools
|
||||
setuptools-scm
|
||||
];
|
||||
|
||||
dependencies = [
|
||||
backports-entry-points-selectable
|
||||
cassandra-driver
|
||||
click
|
||||
deprecated
|
||||
flask
|
||||
iso8601
|
||||
mypy-extensions
|
||||
psycopg
|
||||
redis
|
||||
tenacity
|
||||
swh-core
|
||||
swh-model
|
||||
swh-objstorage
|
||||
] ++ psycopg.optional-dependencies.pool;
|
||||
|
||||
pythonImportsCheck = [ "swh.storage" ];
|
||||
|
||||
nativeCheckInputs = [
|
||||
postgresql
|
||||
postgresqlTestHook
|
||||
pytest-aiohttp
|
||||
pytest-mock
|
||||
pytest-postgresql
|
||||
pytest-shared-session-scope
|
||||
pytest-xdist
|
||||
pytestCheckHook
|
||||
swh-journal
|
||||
];
|
||||
|
||||
disabledTestPaths = [
|
||||
# E fixture 'redisdb' not found
|
||||
"swh/storage/tests/test_replay.py"
|
||||
# Unable to setup the local Cassandra database
|
||||
"swh/storage/tests/test_cassandra.py"
|
||||
"swh/storage/tests/test_cassandra_converters.py"
|
||||
"swh/storage/tests/test_cassandra_diagram.py"
|
||||
"swh/storage/tests/test_cassandra_migration.py"
|
||||
"swh/storage/tests/test_cassandra_ttl.py"
|
||||
"swh/storage/tests/test_cli_cassandra.py"
|
||||
# Failing tests
|
||||
"swh/storage/tests/test_cli_object_references.py"
|
||||
];
|
||||
|
||||
meta = {
|
||||
description = "Abstraction layer over the archive, allowing to access all stored source code artifacts as well as their metadata";
|
||||
homepage = "https://gitlab.softwareheritage.org/swh/devel/swh-storage";
|
||||
license = lib.licenses.gpl3Only;
|
||||
maintainers = with lib.maintainers; [ drupol ];
|
||||
};
|
||||
}
|
||||
@@ -16673,6 +16673,8 @@ self: super: with self; {
|
||||
|
||||
swh-scanner = callPackage ../development/python-modules/swh-scanner { };
|
||||
|
||||
swh-storage = callPackage ../development/python-modules/swh-storage { };
|
||||
|
||||
swh-web-client = callPackage ../development/python-modules/swh-web-client { };
|
||||
|
||||
swift = callPackage ../development/python-modules/swift { };
|
||||
|
||||
Reference in New Issue
Block a user