python3Packages.pulumi-aws: init at 4.38.0
This commit is contained in:
parent
b4c69d74eb
commit
3510fba9b0
3 changed files with 57 additions and 24 deletions
44
pkgs/development/python-modules/pulumi-aws/default.nix
Normal file
44
pkgs/development/python-modules/pulumi-aws/default.nix
Normal file
|
@ -0,0 +1,44 @@
|
|||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, fetchpatch
|
||||
, pulumi
|
||||
, parver
|
||||
, semver
|
||||
, isPy27
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "pulumi-aws";
|
||||
# version is independant of pulumi's.
|
||||
version = "5.3.0";
|
||||
disabled = isPy27;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "pulumi";
|
||||
repo = "pulumi-aws";
|
||||
rev = "v${version}";
|
||||
sha256 = "sha256-LrWiNYJeQQvXJDOxklRO86VSiaadvkOepQVPhh2BBkk=";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
pulumi
|
||||
parver
|
||||
semver
|
||||
];
|
||||
|
||||
postPatch = ''
|
||||
cd sdk/python
|
||||
'';
|
||||
|
||||
# checks require cloud resources
|
||||
doCheck = false;
|
||||
pythonImportsCheck = ["pulumi_aws"];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Pulumi python amazon web services provider";
|
||||
homepage = "https://github.com/pulumi/pulumi-aws";
|
||||
license = licenses.asl20;
|
||||
maintainers = with maintainers; [ costrouc ];
|
||||
};
|
||||
}
|
|
@ -11,6 +11,7 @@
|
|||
, pyyaml
|
||||
, six
|
||||
|
||||
|
||||
# for tests
|
||||
, tox
|
||||
, go
|
||||
|
@ -26,27 +27,20 @@
|
|||
|
||||
, mypy
|
||||
}:
|
||||
|
||||
let
|
||||
data = import ./data.nix {};
|
||||
in
|
||||
buildPythonPackage rec {
|
||||
pname = "pulumi";
|
||||
version = pulumi.version;
|
||||
version = pulumi-bin.version;
|
||||
disabled = isPy27;
|
||||
|
||||
src = pulumi.src;
|
||||
|
||||
patches = [
|
||||
# remove in next release
|
||||
(fetchpatch {
|
||||
url = "https://github.com/pulumi/pulumi/commit/d4b9d61d70972d22a344419fafc30aace58607f5.patch";
|
||||
sha256 = "HEF7VWunFO+NCG18fZA7lbE2l8pc6Z3jcD+rSZ1Jsqg=";
|
||||
}) ];
|
||||
|
||||
# src = fetchFromGitHub {
|
||||
# owner = "pulumi";
|
||||
# repo = "pulumi";
|
||||
# rev = "073e94a0b8b4ef0b1b856c63670a8dd88f6b6d02";
|
||||
# sha256 = "sha256-oyjQW/Z1NvsHpUwikX+bl1npfF4LESOua/o1qjqAgUs=";
|
||||
# };
|
||||
src = fetchFromGitHub {
|
||||
owner = "pulumi";
|
||||
repo = "pulumi";
|
||||
rev = "v${pulumi-bin.version}";
|
||||
sha256 = "sha256-vqEZEHTpJV65a3leWwYhyi3dzAsN67BXOvk5hnTPeuI=";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
semver
|
||||
|
@ -64,7 +58,6 @@ buildPythonPackage rec {
|
|||
bash
|
||||
go
|
||||
tox
|
||||
# pylint
|
||||
pytest
|
||||
pytest-timeout
|
||||
coverage
|
||||
|
@ -79,12 +72,6 @@ buildPythonPackage rec {
|
|||
cp README.md sdk/python/lib
|
||||
patchShebangs .
|
||||
cd sdk/python/lib
|
||||
substituteInPlace ../Makefile \
|
||||
--replace '$(shell cd ../../ && pulumictl get version)' '${pulumi-bin.version}' \
|
||||
--replace '$(shell cd ../../ && pulumictl get version --language python)' '${version}'
|
||||
|
||||
substituteInPlace ../requirements.txt \
|
||||
--replace 'pylint==2.10.2' 'pylint>=2.10.2'
|
||||
|
||||
substituteInPlace setup.py \
|
||||
--replace "{VERSION}" "${version}"
|
||||
|
|
|
@ -1105,6 +1105,8 @@ in {
|
|||
|
||||
pulumi = callPackage ../development/python-modules/pulumi { };
|
||||
|
||||
pulumi-aws = callPackage ../development/python-modules/pulumi-aws { };
|
||||
|
||||
backcall = callPackage ../development/python-modules/backcall { };
|
||||
|
||||
backoff = callPackage ../development/python-modules/backoff { };
|
||||
|
|
Loading…
Reference in a new issue