mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-11-06 02:06:46 +01:00
58 lines
1.1 KiB
Nix
58 lines
1.1 KiB
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, debtcollector
|
|
, netaddr
|
|
, oslo-i18n
|
|
, pbr
|
|
, pyyaml
|
|
, requests
|
|
, rfc3986
|
|
, stevedore
|
|
, callPackage
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "oslo-config";
|
|
version = "8.7.1";
|
|
|
|
src = fetchPypi {
|
|
pname = "oslo.config";
|
|
inherit version;
|
|
sha256 = "a0c346d778cdc8870ab945e438bea251b5f45fae05d6d99dfe4953cca2277b60";
|
|
};
|
|
|
|
postPatch = ''
|
|
# only a small portion of the listed packages are actually needed for running the tests
|
|
# so instead of removing them one by one remove everything
|
|
rm test-requirements.txt
|
|
'';
|
|
|
|
propagatedBuildInputs = [
|
|
debtcollector
|
|
netaddr
|
|
oslo-i18n
|
|
pbr
|
|
pyyaml
|
|
requests
|
|
rfc3986
|
|
stevedore
|
|
];
|
|
|
|
# check in passthru.tests.pytest to escape infinite recursion with other oslo components
|
|
doCheck = false;
|
|
|
|
passthru.tests = {
|
|
tests = callPackage ./tests.nix {};
|
|
};
|
|
|
|
pythonImportsCheck = [ "oslo_config" ];
|
|
|
|
meta = with lib; {
|
|
description = "Oslo Configuration API";
|
|
homepage = "https://github.com/openstack/oslo.config";
|
|
license = licenses.asl20;
|
|
maintainers = teams.openstack.members;
|
|
};
|
|
}
|