My personal project and infrastructure archive
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
nomicon/pkgs/development/python-modules/oslo-config/default.nix

57 lines
1.1 KiB

{ lib
, buildPythonPackage
, fetchPypi
, debtcollector
, netaddr
, oslo-i18n
, pbr
, pyyaml
, requests
, rfc3986
, stevedore
, callPackage
}:
buildPythonPackage rec {
pname = "oslo-config";
version = "8.8.0";
src = fetchPypi {
pname = "oslo.config";
inherit version;
sha256 = "sha256-lpM9MBHa4VYIoRYWv7ANlH4i2jywm2/zfd11dqvUdkw=";
};
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;
};
}