14 buildPythonPackage rec {
15 inherit (pulumi) version src;
21 propagatedBuildInputs = [
32 pulumi.pkgs.pulumi-language-python
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.59" "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 ];