15 buildPythonPackage rec {
16 inherit (pulumi) version src;
19 format = "setuptools";
23 propagatedBuildInputs = [
34 pulumi.pkgs.pulumi-language-python
38 pytestFlagsArray = [ "test/" ];
40 sourceRoot = "${src.name}/sdk/python/lib";
42 # we apply the modifications done in the pulumi/sdk/python/Makefile
43 # but without the venv code
46 substituteInPlace setup.py \
47 --replace "3.0.0" "${version}" \
48 --replace "grpcio==1.56.2" "grpcio" \
49 --replace "semver~=2.13" "semver"
52 # Allow local networking in tests on Darwin
53 __darwinAllowLocalNetworking = true;
55 # Verify that the version substitution works
57 pip show "${pname}" | grep "Version: ${version}" > /dev/null \
58 || (echo "ERROR: Version substitution seems to be broken"; exit 1)
61 pythonImportsCheck = [ "pulumi" ];
64 description = "Modern Infrastructure as Code. Any cloud, any language";
65 homepage = "https://github.com/pulumi/pulumi";
66 license = licenses.asl20;
67 maintainers = with maintainers; [ teto ];
68 # https://github.com/pulumi/pulumi/issues/16828
69 broken = versionAtLeast protobuf.version "5";