mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-11-30 18:00:09 +00:00
55 lines
1.2 KiB
Nix
55 lines
1.2 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
pyprojectVersionPatchHook,
|
|
setuptools,
|
|
python-dateutil,
|
|
aenum,
|
|
requests,
|
|
boto3,
|
|
botocore,
|
|
}:
|
|
|
|
buildPythonPackage (finalAttrs: {
|
|
pname = "infisicalsdk";
|
|
version = "1.3.0";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "Infisical";
|
|
repo = "python-sdk-official";
|
|
tag = "v${finalAttrs.version}";
|
|
hash = "sha256-Qj1Dpuqmv9utv9Ht6m1Pk0E0hYw1DPMW8/rk8VTnGR4=";
|
|
};
|
|
|
|
# fix version in setup.py AND pyproject.toml
|
|
postPatch = ''
|
|
substituteInPlace ./setup.py --replace-fail \
|
|
'VERSION = "1.0.1"' 'VERSION = "${finalAttrs.version}"'
|
|
'';
|
|
nativeBuildInputs = [ pyprojectVersionPatchHook ];
|
|
|
|
build-system = [ setuptools ];
|
|
|
|
dependencies = [
|
|
python-dateutil
|
|
aenum
|
|
requests
|
|
boto3
|
|
botocore
|
|
];
|
|
|
|
pythonImportsCheck = [ "infisical_sdk" ];
|
|
|
|
doCheck = false; # tests require network access + api keys
|
|
|
|
meta = {
|
|
homepage = "https://github.com/Infisical/python-sdk-official";
|
|
description = "Infisical Python SDK";
|
|
license = lib.licenses.mit;
|
|
maintainers = with lib.maintainers; [ artur-sannikov ];
|
|
teams = [ lib.teams.infisical ];
|
|
};
|
|
})
|