Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
74 lines
1.2 KiB
Nix
74 lines
1.2 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchPypi,
|
|
aiosqlite,
|
|
alembic,
|
|
debtcollector,
|
|
oslo-config,
|
|
oslo-context,
|
|
oslo-i18n,
|
|
oslo-utils,
|
|
oslotest,
|
|
pbr,
|
|
psycopg2,
|
|
setuptools,
|
|
sqlalchemy,
|
|
stevedore,
|
|
stestr,
|
|
testresources,
|
|
testscenarios,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "oslo-db";
|
|
version = "17.4.0";
|
|
pyproject = true;
|
|
|
|
src = fetchPypi {
|
|
pname = "oslo_db";
|
|
inherit version;
|
|
hash = "sha256-FLYvWMQWMwy7GIpTKbFNlQF2Ye+K6h1yoP+STuz5EKk=";
|
|
};
|
|
|
|
build-system = [
|
|
pbr
|
|
setuptools
|
|
];
|
|
|
|
dependencies = [
|
|
alembic
|
|
debtcollector
|
|
oslo-config
|
|
oslo-i18n
|
|
oslo-utils
|
|
sqlalchemy
|
|
stevedore
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
aiosqlite
|
|
oslo-context
|
|
oslotest
|
|
stestr
|
|
psycopg2
|
|
testresources
|
|
testscenarios
|
|
];
|
|
|
|
checkPhase = ''
|
|
runHook preCheck
|
|
stestr run -e <(echo "oslo_db.tests.sqlalchemy.test_utils.TestModelQuery.test_project_filter_allow_none")
|
|
runHook postCheck
|
|
'';
|
|
|
|
pythonImportsCheck = [ "oslo_db" ];
|
|
|
|
meta = with lib; {
|
|
description = "Oslo Database library";
|
|
homepage = "https://github.com/openstack/oslo.db";
|
|
license = licenses.asl20;
|
|
teams = [ teams.openstack ];
|
|
};
|
|
}
|