nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at 22.05 69 lines 1.3 kB view raw
1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4 5# build 6, setuptools-scm 7 8# propagates 9, azure-storage-blob 10, boto3 11, requests 12 13# tests 14, responses 15, python 16}: 17 18buildPythonPackage rec { 19 pname = "sapi-python-client"; 20 version = "0.4.1"; 21 format = "setuptools"; 22 23 src = fetchFromGitHub { 24 owner = "keboola"; 25 repo = pname; 26 rev = version; 27 sha256 = "189dzj06vzp7366h2qsfvbjmw9qgl7jbp8syhynn9yvrjqp4k8h3"; 28 }; 29 30 SETUPTOOLS_SCM_PRETEND_VERSION = version; 31 32 nativeBuildInputs = [ 33 setuptools-scm 34 ]; 35 36 propagatedBuildInputs = [ 37 azure-storage-blob 38 boto3 39 requests 40 ]; 41 42 # requires API token and an active keboola bucket 43 # ValueError: Root URL is required. 44 doCheck = false; 45 46 checkInputs = [ 47 responses 48 ]; 49 50 checkPhase = '' 51 runHook preCheck 52 ${python.interpreter} -m unittest discover 53 runHook postCheck 54 ''; 55 56 pythonImportsCheck = [ 57 "kbcstorage" 58 "kbcstorage.buckets" 59 "kbcstorage.client" 60 "kbcstorage.tables" 61 ]; 62 63 meta = with lib; { 64 description = "Keboola Connection Storage API client"; 65 homepage = "https://github.com/keboola/sapi-python-client"; 66 maintainers = with maintainers; [ mrmebelman ]; 67 license = licenses.mit; 68 }; 69}