mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-03-08 09:24:20 +01:00
There is no need to disable Python packages for Python versions that are
no longer in Nixpkgs.
This change was generated using the following script:
pattern='^\s*disabled\s*=\s*pythonOlder\s*"3\.\([0-9]\|10\)"\s*;\s*$'
for f in $(find -name '*.nix'); do
grep -q "$pattern" "$f" || continue
sed -i "/$pattern/d" "$f"
if [ $(grep -c pythonOlder "$f") == 1 ]; then
sed -i '/^\s*pythonOlder,\s*$/d' "$f"
fi
nixfmt "$f"
done
87 lines
1.5 KiB
Nix
87 lines
1.5 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
cliff,
|
|
fetchPypi,
|
|
iso8601,
|
|
keystoneauth1,
|
|
openstackdocstheme,
|
|
osc-lib,
|
|
oslo-i18n,
|
|
oslo-serialization,
|
|
oslo-utils,
|
|
pbr,
|
|
prettytable,
|
|
python-openstackclient,
|
|
python-swiftclient,
|
|
pyyaml,
|
|
requests-mock,
|
|
requests,
|
|
setuptools,
|
|
sphinxHook,
|
|
stestr,
|
|
testscenarios,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "python-heatclient";
|
|
version = "4.3.0";
|
|
pyproject = true;
|
|
|
|
src = fetchPypi {
|
|
pname = "python_heatclient";
|
|
inherit version;
|
|
hash = "sha256-itp863fyXw2+OuLjMoowRhrblP+/NrDCqrwszkg7dfA=";
|
|
};
|
|
|
|
build-system = [
|
|
openstackdocstheme
|
|
python-openstackclient
|
|
setuptools
|
|
sphinxHook
|
|
];
|
|
|
|
sphinxBuilders = [ "man" ];
|
|
|
|
dependencies = [
|
|
cliff
|
|
iso8601
|
|
keystoneauth1
|
|
osc-lib
|
|
oslo-i18n
|
|
oslo-serialization
|
|
oslo-utils
|
|
pbr
|
|
prettytable
|
|
python-swiftclient
|
|
pyyaml
|
|
requests
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
stestr
|
|
testscenarios
|
|
requests-mock
|
|
];
|
|
|
|
checkPhase = ''
|
|
runHook preCheck
|
|
|
|
stestr run -e <(echo "
|
|
heatclient.tests.unit.test_common_http.HttpClientTest.test_get_system_ca_file
|
|
heatclient.tests.unit.test_deployment_utils.TempURLSignalTest.test_create_temp_url
|
|
")
|
|
|
|
runHook postCheck
|
|
'';
|
|
|
|
pythonImportsCheck = [ "heatclient" ];
|
|
|
|
meta = {
|
|
description = "Library for Heat built on the Heat orchestration API";
|
|
mainProgram = "heat";
|
|
homepage = "https://github.com/openstack/python-heatclient";
|
|
license = lib.licenses.asl20;
|
|
teams = [ lib.teams.openstack ];
|
|
};
|
|
}
|