nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{ lib
2, buildPythonApplication
3, fetchPypi
4, pbr
5, babel
6, cliff
7, iso8601
8, osc-lib
9, prettytable
10, oslo-i18n
11, oslo-serialization
12, oslo-utils
13, keystoneauth1
14, python-swiftclient
15, pyyaml
16, requests
17, six
18, stestr
19, testscenarios
20, requests-mock
21}:
22
23buildPythonApplication rec {
24 pname = "python-heatclient";
25 version = "2.5.1";
26
27 src = fetchPypi {
28 inherit pname version;
29 sha256 = "sha256-3l7XyxKm18BAM1DhNsCmRwcZR224+8m/jQ1YHrwLHCs=";
30 };
31
32 propagatedBuildInputs = [
33 pbr
34 babel
35 cliff
36 iso8601
37 osc-lib
38 prettytable
39 oslo-i18n
40 oslo-serialization
41 oslo-utils
42 keystoneauth1
43 python-swiftclient
44 pyyaml
45 requests
46 six
47 ];
48
49 checkInputs = [
50 stestr
51 testscenarios
52 requests-mock
53 ];
54
55 checkPhase = ''
56 stestr run -e <(echo "
57 heatclient.tests.unit.test_common_http.HttpClientTest.test_get_system_ca_file
58 ")
59 '';
60
61 pythonImportsCheck = [ "heatclient" ];
62
63 meta = with lib; {
64 description = "A client library for Heat built on the Heat orchestration API";
65 homepage = "https://github.com/openstack/python-heatclient";
66 license = licenses.asl20;
67 maintainers = teams.openstack.members;
68 };
69}