1{ lib, git, setuptools, setuptools-scm, fetchFromGitHub, requests, boto3, buildPythonPackage, responses }: 2 3buildPythonPackage rec { 4 pname = "sapi-python-client"; 5 version = "0.1.3"; 6 7 src = fetchFromGitHub { 8 owner = "keboola"; 9 repo = pname; 10 rev = version; 11 sha256 = "1xja4v5d30hy26lfys21vcz1lcs88v8mvjxwl2dc3wxx2pzdvcf6"; 12 }; 13 14 postPatch = '' 15 sed -i 's|use_scm_version=True|version="${version}"|' setup.py 16 ''; 17 18 doCheck = false; # requires API token and an active keboola bucket 19 20 nativeBuildInputs = [ git setuptools-scm ]; 21 22 propagatedBuildInputs = [ setuptools requests boto3 responses ]; 23 24 meta = with lib; { 25 description = "Keboola Connection Storage API client"; 26 homepage = "https://github.com/keboola/sapi-python-client"; 27 maintainers = with maintainers; [ mrmebelman ]; 28 license = licenses.mit; 29 }; 30}