also updated the following dependencies: keystoneauth1: 3.1.0 -> 3.2.0 disabled tests which require oslo-config, oslo-test or requests-kerberos oslo-i18n: 2.7.0 -> 3.18.0 oslotest: 1.12.0 -> 2.18.0 os-client-config: 1.8.1 -> 1.28.0 needed to disable testing due to circular dependency with oslotest mox3: 0.11.0 -> 0.23.0 disable tests for py36 due to upstream bug debtcollector: 0.9.0 -> 1.17.0 tests enabled extra packages: requestsexceptions: init at 1.3.0
29 lines
884 B
Nix
29 lines
884 B
Nix
{ buildPythonPackage, isPyPy, fetchPypi, python
|
|
, pbr, testtools, testresources, testrepository, mock
|
|
, pep8, fixtures, mox3, requests-mock
|
|
, iso8601, requests, six, stevedore, webob, oslo-config
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "keystoneauth1";
|
|
version = "3.2.0";
|
|
name = "${pname}-${version}";
|
|
disabled = isPyPy; # a test fails
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "0rg3harfyvai34lrjiqnl1crmvswjvj8nsviasnz4b9pcvp3d03n";
|
|
};
|
|
|
|
buildInputs = [ pbr testtools testresources testrepository mock
|
|
pep8 fixtures mox3 requests-mock ];
|
|
propagatedBuildInputs = [ iso8601 requests six stevedore webob ];
|
|
|
|
# oslo_config is required but would create a circular dependency
|
|
doCheck = false;
|
|
postPatch = ''
|
|
sed -i 's@python@${python.interpreter}@' .testr.conf
|
|
substituteInPlace requirements.txt --replace "argparse" ""
|
|
'';
|
|
}
|